TrainCarts/Tickets

From BergerHealer Wiki
Jump to navigation Jump to search

« Go back

Introduction

Ticket item held in a player's hand

Ticket items are Minecraft Map items used as traditional train tickets to gain access to trains as a passenger.

Usage

Creating, editing and renaming a ticket

Notes

  • Leaving out a ticket name during creation will assign a random, free name
  • Creating a new ticket automatically makes the player edit that ticket

Commands

Creates a new ticket with the name specified
Command: /train ticket create (name)
Permission: train.ticket.manage


Edits the ticket with the given name
Command: /train ticket edit [name]
Permission: train.ticket.manage


Renames the last-edited ticket
Command: /train ticket rename [new_name]
Permission: train.ticket.manage


Deletes the last-edited train ticket
Command: /train ticket remove
Permission: train.ticket.manage


Assigning or unassigning a ticket to a train

Commands

No auto-completion here, will be improved in the future

Assigns a ticket to a train
Command: /train addticket [name]
Permission: train.property.tickets


Un-assigns a ticket from a train
Command: /train remticket [name]
Permission: train.property.tickets


Clears all tickets set for a train
Command: /train clrticket
Permission: train.property.tickets


Property sign

Signtemplate.png
[+train]
property
addticket
myticket


Signtemplate.png
[+train]
property
remticket
myticket


Signtemplate.png
[+train]
property
clrticket

Giving ticket items to players

The ticket properties can later be updated without having to re-give the ticket item. The @p selector can be used (in command blocks) to give to players nearby.

Gives a ticket item to a Player
Command: /train ticket give [name] [player/@p]
Permission: train.ticket.manage


Ticket item configuration

Tickets can be further configured to restrict the number of uses and more.

Set the amount of times ticket items can be used
Command: /train ticket maximumuses [amount/unlimited]
Permission: train.ticket.manage


Set what destination to set on the train when used
Command: /train ticket destination [destination]
Permission: train.ticket.manage


Set what tags to add to the train when used
Command: /train ticket tags [tags]
Permission: train.ticket.manage


Ticket background image

The background image of the item can be changed on a per-ticket basis. Background images need to be put in the plugins/Train_Carts/images folder and must be 128x128 in resolution.

Assigns a background image
Command: /train ticket background [filename]
Permission: train.ticket.manage


Realms

Tickets can be assigned to a realm, a common name that can be assigned to trains. This makes it easier to create multiple different tickets that can be used for the same trains. To use this feature, assign the realm name (instead of the ticket name) to the train tickets property, and now tickets part of this realm can be used.

Sets the ticket realm
Command: /train ticket realm [realm]
Permission: train.ticket.manage