MobEntering
/
Jump to navigation
Jump to search
(Created page with "== 其他选项 ==") |
(Created page with "除了''生物''以外,还有一个更为详细的'''生物类别列表''',可以为其设置特定的碰撞选项。名称'''区分大小写''',并且'''必须小写'''。在较新版本的TC中,复数单词也同样有效。") |
||
Line 46: | Line 46: | ||
== 其他选项 == | == 其他选项 == | ||
除了''生物''以外,还有一个更为详细的'''生物类别列表''',可以为其设置特定的碰撞选项。名称'''区分大小写''',并且'''必须小写'''。在较新版本的TC中,复数单词也同样有效。 | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |
Revision as of 07:24, 13 October 2025
让生物进入矿车
生物遵循碰撞属性规则进入矿车。默认禁用生物自动进入矿车。要为刚生成的矿车或被选中的矿车开启此功能,需要运行命令:
/train collision mobs enter
该命令只会更改当前选定的列车。
默认行为
如果你想让玩家放置的所有矿车都能让生物自动进入,你有两种选择。你可以让玩家放置的是原版矿车,但代价是矿车不能链接编组,更多信息请参阅原版矿车。
或者,你可以更改新放置矿车的默认配置。你需要编辑plugins/Train_Carts/DefaultTrainProperties.yml
。
这里有几个配置板块:
- default为普通玩家。
- admin为拥有
train.properties.admin
权限的玩家(OP默认拥有)。 - spawner适用于在spawner控制牌上使用m/s/p/等语法。不适用于已生成且已保存的列车。
对于你想要编辑的类别,要找到以下位置:
collision: {}
或者,如果已经存在一些配置,它可能看起来像这样:
collision: players: DEFAULT misc: PUSH train: LINK block: DEFAULT
然后修改(或添加)为:
collision: animal: ENTER monster: ENTER
原有的其他配置可以保留。
在一些更高版本上,也可以这样改(或添加):
collision: mobs: ENTER
最后,重启服务器,或者运行命令:
/train globalconfig reload --defaulttrainproperties
其他选项
除了生物以外,还有一个更为详细的生物类别列表,可以为其设置特定的碰撞选项。名称区分大小写,并且必须小写。在较新版本的TC中,复数单词也同样有效。
YAML Key | Category Description |
---|---|
pet | Tameable animals |
jockey | Jockey mounts that can spawn for monsters, like spiders, skeletons, zombie and chickens |
killer_bunny | Rabbit mob, that is a killer bunny specialized type |
npc | Mobs that are NPCs, like villagers |
animal | Passive animal mobs including mobs like the bat and squid |
monster | Hostile monster mobs, including slimes, golems and phantom |
passive | Passive mobs. Large overlap with animal |
neutral | Neutral mobs that can become aggressive. For example, enderman. |
hostile | Hostile mobs that cannot be passive. For example, creeper. |
tameable | Same as pet. Tameable animals |
utility | Utility mobs. Only Golems. |
boss | Boss mobs. Ender dragon, wither. |