TrainCarts/Train Spawn Chest [zh]

From BergerHealer Wiki
Jump to navigation Jump to search
(translate)
(fixed)
Line 8: Line 8:


== 权限与安全 ==
== 权限与安全 ==
列车生成箱可以通过收起包含物品的列车并重复生成,来复制物品。确保禁用 '''train.command.chest.use''' 权限,这样即便生成箱落入生存玩家的手中,他们也无法这样做。或者禁用'''train.spawner.storage'''和'''train.spawner.hopper'''权限,以阻止玩家生成包含物品存储的火车。
存车箱可以通过收起包含物品的列车并重复生成,以此来复制物品。确保禁用 '''train.command.chest.use''' 权限,这样即便存车箱落入生存玩家的手中,他们也无法这样做。或者禁用'''train.spawner.storage'''和'''train.spawner.hopper'''权限,以阻止玩家生成存储了物品的列车。


== 用法 ==
== 用法 ==

Revision as of 00:03, 28 March 2026

Other languages:

介紹

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

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

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

權限與安全

存車箱可以通過收起包含物品的列車並重複生成,以此來複製物品。確保禁用 train.command.chest.use 權限,這樣即便存車箱落入生存玩家的手中,他們也無法這樣做。或者禁用train.spawner.storagetrain.spawner.hopper權限,以阻止玩家生成存儲了物品的列車。

用法

要獲取存車箱,需要執行命令:

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


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


生成模式

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


給予玩家一個空存車箱,其中存放一個預定義的列車
Command: /train chest mytrain
Permission: train.command.chest.create


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


將新列車存放進物品, 生成模式語法
Command: /train chest set mytrain
Permission: train.command.chest.create


特殊命令

手持物品並使用:

清空存車箱
Command: /train chest clear
Permission: train.command.chest.create


鎖定存車箱,防止點擊時收納列車
Command: /train chest lock
Permission: train.command.chest.create


解鎖存車箱,可再次收納列車
Command: /train chest unlock
Permission: train.command.chest.create


設置存車箱的名稱
Command: /train chest name My Train
Permission: train.command.chest.create


設置存車箱可生成有限(1列)或無限數量的列車
Command: /train chest finite yes
Permission: train.command.chest.create


設置存車箱生成的列車初始速度為2格/刻
Command: /train chest speed 2.0
Permission: train.command.chest.create


給予其他玩家

你可以將配置好的物品提供給其他玩家。該命令也可以通過命令方塊執行,支持使用@p。


給予指定玩家一個存車箱
Command: /train chest give <玩家名稱>
Permission: train.command.chest.create


這個命令支持所有相同的更新選項,標籤除外。


給予一個可生成名為Intercity01列車的一次性存車箱,該存車箱不能收納列車。
Command: /train chest give bergerkiller --finite --locked --train Intercity01
Permission: train.command.chest.create