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)
 
(18 intermediate revisions by 3 users not shown)
Line 3: Line 3:


  [[File:Train_Spawn_Chest_Small.gif|thumb|存车箱具有收纳存储和放置生成列车的功能。|link=File:Train_Spawn_Chest.gif]]
  [[File:Train_Spawn_Chest_Small.gif|thumb|存车箱具有收纳存储和放置生成列车的功能。|link=File:Train_Spawn_Chest.gif]]
'''存车箱'''在收纳列车时列车的属性信息也会一并储存。手持存车箱时,玩家可右键目标列车,将其''收纳''。之后可手持该存车箱并右键轨道,即可将收纳的列车释放出来。
'''存车箱'''在收纳列车时列车的属性信息也会一并储存。手持存车箱时,玩家可右键目标列车将其收纳。之后可手持该存车箱并右键轨道,即可将收纳的列车释放出来。


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


<div lang="en" dir="ltr" class="mw-content-ltr">
== Permissions & Security ==
The train spawn chest can be used to duplicate items by picking up a train with chests containing items and spawning it again multiple times. Make sure to revoke the '''train.command.chest.use''' permission so that if a spawn chest item falls in the hands of survival players they cannot do this. Alternatively, deny the '''train.spawner.storage'''  and '''train.spawner.hopper''' permissions so that players cannot spawn trains that contain item storage.
</div>


== 用法 ==
== 用法 ==
要获取存车箱,你需要输入命令:
要获取存车箱,需要执行命令:


{{Command|train chest|Give the player a new empty train chest item|train.command.chest.create}}
{{Command|train chest|给予玩家一个空的存车箱|train.command.chest.create}}


之后你可以右键轨道来生成列车,或右键轨道上的列车将列车收进存车箱。
之后你可以右键轨道来生成列车,或右键轨道上的列车将列车收进存车箱。
Line 17: Line 21:




<div class="mw-translate-fuzzy">
=== 生成模式 ===
=== 生成模式 ===
你也可以指定一种[[Special:MyLanguage/TrainCarts/Spawning|列车生成模式]]将列车收入生成箱,与[[Special:MyLanguage/TrainCarts/Signs/Spawner|生成牌]]使用的模式相同:
你也可以指定一种[[Special:MyLanguage/TrainCarts/Spawning|列车生成模式]]将列车收入存车箱,与[[Special:MyLanguage/TrainCarts/Signs/Spawner|生成牌]]使用的模式相同:
</div>
 
{{Command|train chest mytrain|给予玩家一个空存车箱,其中存放一个预定义的列车<!--Give the player a new empty train chest item with a pre-configured train inside-->|train.command.chest.create}}
 
要更新存车箱的生成模式,手持物品并使用:


<div class="mw-translate-fuzzy">
{{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 lang="en" dir="ltr" class="mw-content-ltr">
{{Command|train chest clear|清空存车箱|train.command.chest.create}}
{{Command|train chest clear|Makes the item empty|train.command.chest.create}}
{{Command|train chest lock|锁定存车箱,防止点击时收纳列车|train.command.chest.create}}
{{Command|train chest lock|Locks the item, preventing it from picking up trains when clicked|train.command.chest.create}}
{{Command|train chest unlock|解锁存车箱,可再次收纳列车|train.command.chest.create}}
{{Command|train chest unlock|Unlocks the item so it can pick up trains again|train.command.chest.create}}
{{Command|train chest name My Train|设置存车箱的名称|train.command.chest.create}}
{{Command|train chest name My Train|Gives the item a human-readable name to identify it|train.command.chest.create}}
{{Command|train chest finite yes|设置存车箱可生成有限(1列)或无限数量的列车|train.command.chest.create}}
{{Command|train chest finite yes|Makes the chest item have finite (1) or infinite number of spawns|train.command.chest.create}}
{{Command|train chest speed 2.0|设置存车箱生成的列车初始速度为2格/|train.command.chest.create}}
{{Command|train chest speed 2.0|Makes the chest item spawn the train with an initial speed of 2 blocks/tick|train.command.chest.create}}
</div>


=== 给予其他玩家 ===
=== 给予其他玩家 ===


<div class="mw-translate-fuzzy">
你可以将配置好的物品提供给其他玩家。该命令也可以通过命令方块执行,支持使用@p。
你可以将配置好的物品提供给其他玩家。该命令也可以通过命令方块执行,支持@p语法。
 
</div>
{{Command|train chest give <玩家名称>|给予指定玩家一个存车箱|train.command.chest.create}}
 
这个命令支持所有相同的更新选项,标签除外。


<div class="mw-translate-fuzzy">
{{Command|train chest give bergerkiller --finite --locked --train Intercity01|给予一个可生成名为Intercity01列车的一次性存车箱,该存车箱不能收纳列车。|train.command.chest.create}}
这个命令支持所有相同的更新选项,除了标签(需验证)。
</div>

Latest revision as of 13:05, 7 March 2026

Other languages:

介绍

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

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

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

Permissions & Security

The train spawn chest can be used to duplicate items by picking up a train with chests containing items and spawning it again multiple times. Make sure to revoke the train.command.chest.use permission so that if a spawn chest item falls in the hands of survival players they cannot do this. Alternatively, deny the train.spawner.storage and train.spawner.hopper permissions so that players cannot spawn trains that contain item storage.

用法

要获取存车箱,需要执行命令:

给予玩家一个空的存车箱
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