TrainCarts/Train Spawn Chest [zh]

From BergerHealer Wiki
Jump to navigation Jump to search
No edit summary
(Updating to match new version of source page)
Line 20: Line 20:
=== 生成模式 ===
=== 生成模式 ===
你也可以指定一种[[Special:MyLanguage/TrainCarts/Spawning|列车生成模式]]将列车收入生成箱,与[[Special:MyLanguage/TrainCarts/Signs/Spawner|生成牌]]使用的模式相同:
你也可以指定一种[[Special:MyLanguage/TrainCarts/Spawning|列车生成模式]]将列车收入生成箱,与[[Special:MyLanguage/TrainCarts/Signs/Spawner|生成牌]]使用的模式相同:
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
{{Command|train chest mytrain|Give the player a new empty train chest item with a pre-configured train inside|train.command.chest.create}}
</div>
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
要更新列车生成箱的生成模式,手持物品并使用:
要更新列车生成箱的生成模式,手持物品并使用:
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
{{Command|train chest set mytrain|Put a new train inside the item, [[Special:MyLanguage/TrainCarts/Spawning|spawn pattern syntax]]|train.command.chest.create}}
</div>
</div>


Line 43: Line 51:
你可以将配置好的物品提供给其他玩家。该命令也可以通过命令方块执行,支持@p语法。
你可以将配置好的物品提供给其他玩家。该命令也可以通过命令方块执行,支持@p语法。
</div>
</div>
[[Special:MyLanguage/TrainCarts|« 返回]]


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
这个命令支持所有相同的更新选项,除了标签(需验证)。
这个命令支持所有相同的更新选项,除了标签(需验证)。
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
{{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}}
</div>
</div>

Revision as of 06:12, 31 October 2025

介紹

存車箱具有收納存儲和放置生成列車的功能。

存車箱在收納列車時列車的屬性信息也會一併儲存。手持存車箱時,玩家可右鍵目標列車,將其收納。之後可手持該存車箱並右鍵軌道,即可將收納的列車釋放出來。

放置列車時如果有另一輛靠得很近的列車,它們會連接在一起。列車的生成方向會隨著玩家目光注視鐵軌的方向而變化。


用法

要獲取存車箱,你需要輸入命令:

給予玩家一個空的存車箱
Command: /train chest
Permission: train.command.chest.create


之後你可以右鍵軌道來生成列車,或右鍵軌道上的列車將列車收進存車箱。 存車箱需要train.command.chest.use權限才能使用。


生成模式

你也可以指定一種列車生成模式將列車收入生成箱,與生成牌使用的模式相同:

Give the player a new empty train chest item with a pre-configured train inside
Command: /train chest mytrain
Permission: train.command.chest.create


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

Put a new train inside the item, spawn pattern 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


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語法。

« 返回

這個命令支持所有相同的更新選項,除了標籤(需驗證)。

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