TrainCarts/Train Spawn Chest [zh]

From BergerHealer Wiki
Revision as of 03:12, 30 October 2025 by Halogly (talk | contribs)
Jump to navigation Jump to search
Other languages:

介绍

存车箱具有收纳存储和放置生成列车的功能。

存车箱在收纳列车时列车的属性信息也会一并储存。手持存车箱时,玩家可右键目标列车,将其收纳。之后可手持该存车箱并右键轨道,即可将收纳的列车释放出来。

释放列车时如果有另一辆靠得很近的列车,它们会连接在一起。列车的生成方向会随着玩家目光注视铁轨的方向而变化。


用法

要获取存车箱,你需要输入命令:

Give the player a new empty train chest item
Command: /train chest
Permission: train.command.chest.create


之后你可以右键轨道来生成列车,或右键轨道上的列车将列车收进存车箱。 存车箱需要train.command.chest.use权限才能使用。


生成模式

你也可以指定一种列车生成模式将列车收入生成箱,与生成牌使用的模式相同:

要更新列车生成箱的生成模式,手持物品并使用:

特殊命令

手持物品并使用:

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


Makes the chest item spawn the train with an initial speed of 2 blocks/tick
Command: /train chest speed 2.0
Permission: train.command.chest.create


给予其他玩家

你可以将配置好的物品提供给其他玩家。该命令也可以通过命令方块执行,支持@p语法。

这个命令支持所有相同的更新选项,除了标签(需验证)。