Difference between revisions of "TrainCarts/Train Spawn Chest"

From BergerHealer Wiki
Jump to navigation Jump to search
(Marked this version for translation)
(Prepared the page for translation)
Line 1: Line 1:
[[TrainCarts|« Go back]]
+
<languages/>
 +
<translate>
 +
[[Special:MyLanguage/TrainCarts|« Go back]]
 +
 
 +
 
 +
== Introduction ==
  
<translate>
+
<!--T:1-->
== Introduction == <!--T:1-->
 
 
[[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]]
 
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.
 
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 == <!--T:2-->
+
 
 +
== Usage ==
 +
 
 +
<!--T:2-->
 
To get the item, you need to use the following command:
 
To get the item, you need to use the following command:
 +
</translate>
 
{{Command|train chest|Give the player a new empty train chest item|train.command.chest.create}}
 
{{Command|train chest|Give the player a new empty train chest item|train.command.chest.create}}
 +
<translate>
  
 
<!--T:3-->
 
<!--T:3-->
Line 15: Line 24:
  
 
<!--T:4-->
 
<!--T:4-->
You can also specify a train to put in the item, which follows the same syntax as the [[TrainCarts/Signs/Spawner|spawn sign]].
+
You can also specify a train to put in the item, which follows the same syntax as the [[Special:MyLanguage/TrainCarts/Signs/Spawner|spawn sign]].
 +
</translate>
 
{{Command|train chest mytrain|Give the player a new empty train chest item with a pre-configured train inside|train.command.chest.create}}
 
{{Command|train chest mytrain|Give the player a new empty train chest item with a pre-configured train inside|train.command.chest.create}}
 +
<translate>
  
=== Updating === <!--T:5-->
+
 
 +
=== Updating ===
 +
 
 +
<!--T:5-->
 
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:
 
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:
 +
</translate>
 
{{Command|train chest set mytrain|Put a new train inside the item, spawn sign syntax|train.command.chest.create}}
 
{{Command|train chest set mytrain|Put a new train inside the item, spawn sign syntax|train.command.chest.create}}
 +
<translate>
 +
</translate>
 
{{Command|train chest clear|Makes the item empty|train.command.chest.create}}
 
{{Command|train chest clear|Makes the item empty|train.command.chest.create}}
 +
<translate>
 +
</translate>
 
{{Command|train chest lock|Locks the item, preventing it from picking up trains when clicked|train.command.chest.create}}
 
{{Command|train chest lock|Locks the item, preventing it from picking up trains when clicked|train.command.chest.create}}
 +
<translate>
 +
</translate>
 
{{Command|train chest unlock|Unlocks the item so it can pick up trains again|train.command.chest.create}}
 
{{Command|train chest unlock|Unlocks the item so it can pick up trains again|train.command.chest.create}}
 +
<translate>
 +
</translate>
 
{{Command|train chest name My Train|Gives the item a human-readable name to identify it|train.command.chest.create}}
 
{{Command|train chest name My Train|Gives the item a human-readable name to identify it|train.command.chest.create}}
 +
<translate>
 +
</translate>
 
{{Command|train chest finite yes|Makes the chest item have finite (1) or infinite number of spawns|train.command.chest.create}}
 
{{Command|train chest finite yes|Makes the chest item have finite (1) or infinite number of spawns|train.command.chest.create}}
 +
<translate>
 +
  
=== Giving to other players === <!--T:6-->
+
=== Giving to other players ===
 +
 
 +
<!--T:6-->
 
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.
 
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.
 +
</translate>
 
{{Command|train chest give PlayerName|Gives a train chest item to a player|train.command.chest.create}}
 
{{Command|train chest give PlayerName|Gives a train chest item to a player|train.command.chest.create}}
 +
<translate>
  
 
<!--T:7-->
 
<!--T:7-->
 
This command supports all the same updating options but as flags.
 
This command supports all the same updating options but as flags.
 +
</translate>
 
{{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>
 +
 
</translate>
 
</translate>

Revision as of 18:47, 25 December 2021

Other languages:

« Go back


Introduction

Train spawn chest is used to pick up a train and spawn it again

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:
Give the player a new empty train chest item
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.

Give the player a new empty train chest item with a pre-configured train inside
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:
Put a new train inside the item, spawn sign syntax
Command: /train chest set mytrain
Permission: train.command.chest.create


Makes the item empty
Command: /train chest clear
Permission: train.command.chest.create


Locks the item, preventing it from picking up trains when clicked
Command: /train chest lock
Permission: train.command.chest.create


Unlocks the item so it can pick up trains again
Command: /train chest unlock
Permission: train.command.chest.create


Gives the item a human-readable name to identify it
Command: /train chest name My Train
Permission: train.command.chest.create


Makes the chest item have finite (1) or infinite number of spawns
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.
Gives a train chest item to a player
Command: /train chest give PlayerName
Permission: train.command.chest.create


This command supports all the same updating options but as flags.

Gives a single-use spawn chest that spawns the Intercity01 train. Can not be used to pick up trains.
Command: /train chest give bergerkiller --finite --locked --train Intercity01
Permission: train.command.chest.create