Difference between revisions of "TrainCarts/Train Spawn Chest"
Bergerkiller (talk | contribs) m (→Usage) |
Bergerkiller (talk | contribs) m (Enable translations, maybe?) |
||
Line 1: | Line 1: | ||
[[TrainCarts|« Go back]] | [[TrainCarts|« Go back]] | ||
+ | <translate> | ||
== Introduction == | == Introduction == | ||
[[File:Train_Spawn_Chest_Small.gif|thumb|Train spawn chest is used to pick up a train and spawn it again|link=File:Train_Spawn_Chest.gif]] | [[File:Train_Spawn_Chest_Small.gif|thumb|Train spawn chest is used to pick up a train and spawn it again|link=File:Train_Spawn_Chest.gif]] | ||
Line 30: | Line 31: | ||
This command supports all the same updating options but as flags. | This command supports all the same updating options but as flags. | ||
{{Command|train chest give bergerkiller --finite --locked --train Intercity01|Gives a single-use spawn chest that spawns the Intercity01 train. Can not be used to pick up trains.|train.command.chest.create}} | {{Command|train chest give bergerkiller --finite --locked --train Intercity01|Gives a single-use spawn chest that spawns the Intercity01 train. Can not be used to pick up trains.|train.command.chest.create}} | ||
+ | </translate> |
Revision as of 18:28, 25 December 2021
Introduction
The Train spawn chest is a special item that can hold train information. While holding the item players can right-click on trains to suck up the train into the item. Then, by right-clicking on rails, players can spawn the train again. All train properties are preserved.
Usage
To get the item, you need to use the following command:
Command: | /train chest |
---|---|
Permission: | train.command.chest.create |
You can then right-click on rails to spawn a train there, or right-click existing trains to suck them into the item. For this you also need the train.command.chest.use permission.
You can also specify a train to put in the item, which follows the same syntax as the spawn sign.
Command: | /train chest mytrain |
---|---|
Permission: | train.command.chest.create |
Updating
You can also update an existing train chest item, without getting a new item every time. The player has to hold the chest item, then use one of the following commands:
Command: | /train chest set mytrain |
---|---|
Permission: | train.command.chest.create |
Command: | /train chest clear |
---|---|
Permission: | train.command.chest.create |
Command: | /train chest lock |
---|---|
Permission: | train.command.chest.create |
Command: | /train chest unlock |
---|---|
Permission: | train.command.chest.create |
Command: | /train chest name My Train |
---|---|
Permission: | train.command.chest.create |
Command: | /train chest finite yes |
---|---|
Permission: | train.command.chest.create |
Giving to other players
You can give a completely configured item to other players. This command can also be executed from command blocks, and supports the @p syntax for that purpose.
Command: | /train chest give PlayerName |
---|---|
Permission: | train.command.chest.create |
This command supports all the same updating options but as flags.
Command: | /train chest give bergerkiller --finite --locked --train Intercity01 |
---|---|
Permission: | train.command.chest.create |