Difference between revisions of "TrainCarts/Signs/Spawner/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "每 1 分 20 秒生成 3 辆速度为 0.5 格方块/刻的矿车。间隔时间需设置在生成后和启动速度之前。自动生成器将加载以自身为中心附近 7x...")
(Updating to match new version of source page)
Line 66: Line 66:
 
每 1 分 20 秒生成 3 辆速度为 0.5 格方块/刻的矿车。间隔时间需设置在生成后和启动速度之前。自动生成器将加载以自身为中心附近 7x7 的区块,生成矿车。尽量不要将间隔时间调太低,因为这会让生成器附近的区块频繁卸载,可能会造成一些问题。
 
每 1 分 20 秒生成 3 辆速度为 0.5 格方块/刻的矿车。间隔时间需设置在生成后和启动速度之前。自动生成器将加载以自身为中心附近 7x7 的区块,生成矿车。尽量不要将间隔时间调太低,因为这会让生成器附近的区块频繁卸载,可能会造成一些问题。
  
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 
=== Spawn Limit ===
 
=== Spawn Limit ===
 
To limit how many trains the spawn sign can spawn, you can set a '''spawn limit''' for a saved train. To set one, first save the train to spawn with the spawn sign (<code>/train save name</code>). Then, use the <code>/savedtrain name spawnlimit <limit></code> command to set a limit. This is useful when automatically populating a train network with trains.
 
To limit how many trains the spawn sign can spawn, you can set a '''spawn limit''' for a saved train. To set one, first save the train to spawn with the spawn sign (<code>/train save name</code>). Then, use the <code>/savedtrain name spawnlimit <limit></code> command to set a limit. This is useful when automatically populating a train network with trains.
 +
</div>
  
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 
This can be combined with enabling <code>destroyAllOnShutdown</code> in '''config.yml''' so that on server restart everything starts with a clean slate.
 
This can be combined with enabling <code>destroyAllOnShutdown</code> in '''config.yml''' so that on server restart everything starts with a clean slate.
 +
</div>
  
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 
== Failure Colors ==
 
== Failure Colors ==
 
When the spawn sign fails to spawn, it shows dust particles at the sign to explain why.
 
When the spawn sign fails to spawn, it shows dust particles at the sign to explain why.
Line 88: Line 93:
 
| <span style="color:#BBBB00">Yellow</span> || Spawn sign cooldown prevents spawning ('''config.yml spawnSignCooldown setting''')
 
| <span style="color:#BBBB00">Yellow</span> || Spawn sign cooldown prevents spawning ('''config.yml spawnSignCooldown setting''')
 
|}
 
|}
 +
</div>

Revision as of 15:03, 17 September 2024

Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

TrainCarts-Spawner.gif

列车生成器会生成完整的列车。列车会在控制牌上方铁轨的文本一侧生成。当激活生成牌时(之前处于未激活状态),生成牌会检测铁轨上是否有其他列车,如果轨道无占用,就会生成一辆列车。


语法

Signtemplate.png
[train]
spawn 2
psmmmmmsp


第一行

[train],可以指定列车的生成方向。例如:[train:left][train:right]。如果没有指定,则会根据红石信号的输入方向来作为生成方向。关于自动生成器,建议使用 [+train] 来让生成器始终运作。


第二行

spawn,后可添加前进动力来生成列车。


第三行和第四行

要生成的矿车类型,需使用以下的字符。生成的列车会按照生成器上设置的顺序来生成相同类型的列车。若要一次性生成多辆矿车,比如 30 辆,那么请在字符前面添加要生成的列车数量。比如,30s60m 会生成一列由 30 辆储存矿车和 60 辆普通矿车组成的列车。

文本 Minecart 类型
m 普通矿车
p 动力矿车
s 运输矿车
t TNT 矿车
h 漏斗矿车
e Minecart with Spawner

也可以生成你之前制作保存的列车,只需在第三行填写已保存列车的名称就行了。

Signtemplate.png
[train]
spawn
<train name>


自动生成

可以设置生成列车的间隔:

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

每 1 分 20 秒生成 3 辆速度为 0.5 格方块/刻的矿车。间隔时间需设置在生成后和启动速度之前。自动生成器将加载以自身为中心附近 7x7 的区块,生成矿车。尽量不要将间隔时间调太低,因为这会让生成器附近的区块频繁卸载,可能会造成一些问题。

Spawn Limit

To limit how many trains the spawn sign can spawn, you can set a spawn limit for a saved train. To set one, first save the train to spawn with the spawn sign (/train save name). Then, use the /savedtrain name spawnlimit <limit> command to set a limit. This is useful when automatically populating a train network with trains.

This can be combined with enabling destroyAllOnShutdown in config.yml so that on server restart everything starts with a clean slate.

Failure Colors

When the spawn sign fails to spawn, it shows dust particles at the sign to explain why.

Color Reason
Blue Not enough rails to spawn on
Purple Rails are occupied by another train
Red Spawned train has a spawn limit that is exceeded (SavedTrain spawn limit)
Orange Maximum number of carts per world reached (config.yml maxCartsPerWorld setting)
Maroon Spawned train is too long (config.yml maxCartsPerTrain setting)
Yellow Spawn sign cooldown prevents spawning (config.yml spawnSignCooldown setting)