Difference between revisions of "TrainCarts/Signs/Spawner"

From BergerHealer Wiki
Jump to navigation Jump to search
(Prepared the page for translation)
(Marked this version for translation)
Line 1: Line 1:
 
<languages/>
 
<languages/>
 
<translate>
 
<translate>
 +
<!--T:1-->
 
[[Special:MyLanguage/TrainCarts/Signs|« Go back]]
 
[[Special:MyLanguage/TrainCarts/Signs|« Go back]]
  
  
== Introduction ==
+
== Introduction == <!--T:2-->
  
 +
<!--T:3-->
 
[[File:TrainCarts-Spawner.gif|frame|right]]
 
[[File:TrainCarts-Spawner.gif|frame|right]]
 
The train spawner sign allows you to spawn complete trains. Trains are spawned to the text-side of the sign on the rails above. When it receives power while it was unpowered before, it will trace down the tracks and spawn a train on it if there are no other trains occupying the rails.
 
The train spawner sign allows you to spawn complete trains. Trains are spawned to the text-side of the sign on the rails above. When it receives power while it was unpowered before, it will trace down the tracks and spawn a train on it if there are no other trains occupying the rails.
  
  
== Syntax ==
+
== Syntax == <!--T:4-->
  
 
</translate>
 
</translate>
Line 18: Line 20:
  
  
=== First line ===
+
=== First line === <!--T:5-->
  
 +
<!--T:6-->
 
''[train]'', a spawn direction can be set by specifying trigger directions. For example: ''[train:left]'' or ''[train:right]''. If none is set, the train is spawned based on what side is powered by redstone. For automatic spawners, ''[+train]'' (always powered) is recommended.
 
''[train]'', a spawn direction can be set by specifying trigger directions. For example: ''[train:left]'' or ''[train:right]''. If none is set, the train is spawned based on what side is powered by redstone. For automatic spawners, ''[+train]'' (always powered) is recommended.
  
  
=== Second line ===
+
=== Second line === <!--T:7-->
  
 +
<!--T:8-->
 
''spawn'', optionally followed up by the forward force to spawn the train at.
 
''spawn'', optionally followed up by the forward force to spawn the train at.
  
  
=== Third and fourth lines ===
+
=== Third and fourth lines === <!--T:9-->
  
 +
<!--T:10-->
 
The minecart types to spawn, using characters shown below. The resulting train will be spawned with the same types in the same order as set on the sign. To spawn many carts at once, this way spawning more than 30 Minecarts, define the number of times to spawn in front of the character. For example, ''30s60m'' spawns a train with 30 storage minecarts and 60 regular minecarts.
 
The minecart types to spawn, using characters shown below. The resulting train will be spawned with the same types in the same order as set on the sign. To spawn many carts at once, this way spawning more than 30 Minecarts, define the number of times to spawn in front of the character. For example, ''30s60m'' spawns a train with 30 storage minecarts and 60 regular minecarts.
  
 +
<!--T:11-->
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 63: Line 69:
  
  
== Automated spawning ==
+
== Automated spawning == <!--T:12-->
  
 +
<!--T:13-->
 
As of v1.69 it is possible to spawn trains at a set interval:
 
As of v1.69 it is possible to spawn trains at a set interval:
  
Line 71: Line 78:
 
<translate>
 
<translate>
  
 +
<!--T:14-->
 
Will spawn 3 minecarts every 1 minute and 20 seconds at a velocity of 0.5 blocks/tick. The interval time has to be set after spawn and before the launching velocity. The automatic spawner will load a 7x7 chunk area around the sign, and spawn a minecart. Try not to set the interval too low as that may cause issues when the chunks around the signs unload a lot.
 
Will spawn 3 minecarts every 1 minute and 20 seconds at a velocity of 0.5 blocks/tick. The interval time has to be set after spawn and before the launching velocity. The automatic spawner will load a 7x7 chunk area around the sign, and spawn a minecart. Try not to set the interval too low as that may cause issues when the chunks around the signs unload a lot.
 
</translate>
 
</translate>

Revision as of 17:34, 8 February 2021

Other languages:
English

« Go back


Introduction

TrainCarts-Spawner.gif

The train spawner sign allows you to spawn complete trains. Trains are spawned to the text-side of the sign on the rails above. When it receives power while it was unpowered before, it will trace down the tracks and spawn a train on it if there are no other trains occupying the rails.


Syntax

Signtemplate.png
[train]
spawn 2
psmmmmmsp


First line

[train], a spawn direction can be set by specifying trigger directions. For example: [train:left] or [train:right]. If none is set, the train is spawned based on what side is powered by redstone. For automatic spawners, [+train] (always powered) is recommended.


Second line

spawn, optionally followed up by the forward force to spawn the train at.


Third and fourth lines

The minecart types to spawn, using characters shown below. The resulting train will be spawned with the same types in the same order as set on the sign. To spawn many carts at once, this way spawning more than 30 Minecarts, define the number of times to spawn in front of the character. For example, 30s60m spawns a train with 30 storage minecarts and 60 regular minecarts.

Text Minecart type
m Regular Minecart
p Powered Minecart
s Storage Minecart
t TNT Minecart
h Hopper minecart
e with Spawner

It is also possible to spawn trains you made and saved before. Just put the name of the train on the 3rd line instead of the minecart types.

Signtemplate.png
[train]
spawn
<train name>


Automated spawning

As of v1.69 it is possible to spawn trains at a set interval:

Signtemplate.png
[+train]
spawn 1:20 0.5
mmm

Will spawn 3 minecarts every 1 minute and 20 seconds at a velocity of 0.5 blocks/tick. The interval time has to be set after spawn and before the launching velocity. The automatic spawner will load a 7x7 chunk area around the sign, and spawn a minecart. Try not to set the interval too low as that may cause issues when the chunks around the signs unload a lot.