Difference between revisions of "TrainCarts/MobEntering/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "« 返回")
 
(18 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
[[Special:MyLanguage/TrainCarts|« 返回]]
 
[[Special:MyLanguage/TrainCarts|« 返回]]
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
== 让生物进入矿车里 ==
== Putting mobs into Minecarts ==
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
生物遵循[[Special:MyLanguage/TrainCarts/Signs/Property|碰撞属性]]规则来进入矿车。默认情况下,禁用生物自动进入矿车。要为刚生成的矿车或[[Special:MyLanguage/TrainCarts/Commands#Selecting|被选中]]的矿车开启此功能,需要运行指令:
Mobs are put into minecarts through a [[Special:MyLanguage/TrainCarts/Signs/Property|collision property]] rule. By default this automatic entering is disabled. To turn it on for a train you have just spawned or [[Special:MyLanguage/TrainCarts/Commands#Selecting|selected]], run the following command:
 
 
<pre>/train collision mobs enter</pre>
 
<pre>/train collision mobs enter</pre>
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
该指令只会改变你所选择的一列车。
This command only changes this for the one train you had selected.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
== 默认行为 ==
== Default Behavior ==
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
如果你想让玩家放置的所有矿车默认都是自动让生物进入的,你有两种选择。你可以让玩家放置的是原版矿车,但代价是矿车不能链接编组, [[Special:MyLanguage/TrainCarts/VanillaMinecarts/zh-cn|更多信息请参阅(原版矿车)]]
If you want all minecarts placed by players to put mobs into them by default, you have two options. You can make it so that minecarts placed by players are vanilla Minecraft minecarts, but that means they cannot be trains. [[Special:MyLanguage/TrainCarts/VanillaMinecarts|See this page for more information about that.]]
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
或者,你可以更改新放置的矿车的默认配置。你需要编辑 <code>plugins/Train_Carts/DefaultTrainProperties.yml</code>
Alternatively, you can change the default setting for newly placed minecarts. To do so, edit <code>plugins/Train_Carts/DefaultTrainProperties.yml</code>.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
这里有几个配置板块:
There's multiple blocks of configurations:
+
* '''default''' 为普通玩家。
* '''default''' is for normal players
+
* '''admin''' 为拥有 <code>train.properties.admin</code> 权限的玩家(OP默认拥有)。
* '''admin''' for players with the <code>train.properties.admin</code> permission (OP by default)
+
* '''spawner''' 适用于在 '''spawner''' 控制牌上使用 m/s/p/ 等语法。不适用于已生成且已保存的列车。
* '''spawner''' is for trains spawned with the m/s/p/etc. syntax, on spawner signs. Does not apply to saved trains that are spawned.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
对于你想要编辑的类别,要找到以下位置:
For the category/categories you want to edit, find the line:
 
 
<pre>collision: {}</pre>
 
<pre>collision: {}</pre>
Or, it might look like this if it already had some configurations:
+
或者,如果已经存在一些配置,它可能看起来像这样:
 
<pre>  collision:
 
<pre>  collision:
 
     players: DEFAULT
 
     players: DEFAULT
Line 43: Line 28:
 
     train: LINK
 
     train: LINK
 
     block: DEFAULT</pre>
 
     block: DEFAULT</pre>
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
然后修改(或添加)为:
And change it to:
 
 
<pre>
 
<pre>
 
   collision:
 
   collision:
Line 52: Line 35:
 
     monster: ENTER
 
     monster: ENTER
 
</pre>
 
</pre>
You can leave previous options if they existed.
+
原有的其他配置可以保留。
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
在一些更高版本上,也可以这样改(或添加):
On more modern versions of TrainCarts this can work too:
 
 
<pre>
 
<pre>
 
   collision:
 
   collision:
 
     mobs: ENTER
 
     mobs: ENTER
 
</pre>
 
</pre>
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
最后,重启服务器,或者运行以下指令:
Then, either restart the server, or run this command:
 
 
<pre>/train globalconfig reload --defaulttrainproperties</pre>
 
<pre>/train globalconfig reload --defaulttrainproperties</pre>
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
== 其他选项 ==
== Other Options ==
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
+
除了 ''生物'' 以外,还有一个更为详细的'''生物类别列表''',可以为其设置特定的碰撞选项。名称'''区分大小写''',并且'''必须小写'''。在较新版本 TC 中,复数名称也有效。
Besides ''mobs'' there is a more fine-grained list of categories of mobs that can be set specific collision options for. The names are case-sensitive, and must be lower-cased. On newer versions of TrainCarts plural names work, too.
 
</div>
 
  
<div lang="en" dir="ltr" class="mw-content-ltr">
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! YAML Key !! Category Description
+
! YAML 关键词 !! 类别描述
 
|-
 
|-
| pet || Tameable animals
+
| pet || 可驯服的动物。
 
|-
 
|-
| jockey || Jockey mounts that can spawn for monsters, like spiders, skeletons, zombie and chickens
+
| jockey || 骑士,例如蜘蛛骑士(蜘蛛和骷髅)和鸡骑士(僵尸和鸡)。
 
|-
 
|-
| killer_bunny || Rabbit mob, that is a killer bunny specialized type
+
| killer_bunny || 兔子,但是杀手兔。
 
|-
 
|-
| npc || Mobs that are NPCs, like villagers
+
| npc || NPC,比如村民。
 
|-
 
|-
| animal || Passive animal mobs including mobs like the bat and squid
+
| animal || 被动动物,如蝙蝠、鱿鱼等。
 
|-
 
|-
| monster || Hostile monster mobs, including slimes, golems and phantom
+
| monster || 敌对生物,包括史莱姆、傀儡和幻翼。
 
|-
 
|-
| passive || Passive mobs. Large overlap with animal
+
| passive || 被动生物,与被动动物(animal)重复较多。
 
|-
 
|-
| neutral || Neutral mobs that can become aggressive. For example, enderman.
+
| neutral || 中立生物(具有潜在攻击性的生物),比如末影人。
 
|-
 
|-
| hostile || Hostile mobs that cannot be passive. For example, creeper.
+
| hostile || 主动生物(主动进攻的生物),比如苦力怕。
 
|-
 
|-
| tameable || Same as pet. Tameable animals
+
| tameable || 与宠物(pet)相同,为可驯服的生物。
 
|-
 
|-
| utility || Utility mobs. Only Golems.
+
| utility || 实用型生物,仅限傀儡。
 
|-
 
|-
| boss || Boss mobs. Ender dragon, wither.
+
| boss || Boss生物,如末影龙、凋灵等。
 
|}
 
|}
</div>
 

Latest revision as of 17:38, 1 September 2024

Other languages:
English • ‎中文(中国大陆)‎

« 返回

让生物进入矿车里

生物遵循碰撞属性规则来进入矿车。默认情况下,禁用生物自动进入矿车。要为刚生成的矿车或被选中的矿车开启此功能,需要运行指令:

/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 关键词 类别描述
pet 可驯服的动物。
jockey 骑士,例如蜘蛛骑士(蜘蛛和骷髅)和鸡骑士(僵尸和鸡)。
killer_bunny 兔子,但是杀手兔。
npc NPC,比如村民。
animal 被动动物,如蝙蝠、鱿鱼等。
monster 敌对生物,包括史莱姆、傀儡和幻翼。
passive 被动生物,与被动动物(animal)重复较多。
neutral 中立生物(具有潜在攻击性的生物),比如末影人。
hostile 主动生物(主动进攻的生物),比如苦力怕。
tameable 与宠物(pet)相同,为可驯服的生物。
utility 实用型生物,仅限傀儡。
boss Boss生物,如末影龙、凋灵等。