TrainCarts/控制牌/进入

From BergerHealer Wiki
Revision as of 10:53, 14 September 2024 by Halogly (talk | contribs) (Created page with "=== 第四行 ===")
Jump to navigation Jump to search
Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

进入牌可以让附近的玩家和/或生物进入列车。它会覆盖 allowenter 属性,这意味着你可以拒绝玩家手动进入列车的同时还能通过进入牌来让玩家自动进入列车。


语法

Signtemplate.png
[train]
enter 3s
player mob
no


第一行:[train] 让玩家进入列车的任意一节车厢,[cart] 让玩家进入单辆矿车。


第二行

enter,后面可以跟随搜索附近玩家或生物的方块半径数值。当在半径数值后面跟随 s 时,搜索区域是球形的,否则就是高为 1 格的圆柱体。所以,如果你不想让高或低的玩家或生物进入列车,请不要填写 s,如果你需要,那就加上 s。


第三行

允许什么类型的实体进入。输入 mob 则生物进入,输入 player 则玩家进入。misc 会让其他类型实体进入,比如盔甲架。如果留空,则只有玩家会进入列车。你如果想让玩家和生物都可以进入,你可以写成 player mob


第四行

Sets whether to look around the sign for players/mobs to enter, or whether to look around each individual minecart. By specifying 'yes/true' it will look around the sign, by specifying 'no/false' or by leaving the line empty it will look around each minecart.


Remote Control

You can remotely make trains take in passengers. Say your train is called train01, then you use the following on the sign:

Signtemplate.png
[train train01]
enter 5
player
yes


Then it will teleport all players near the enter sign into the train named train01. Note that long-distance teleportation (between worlds or far away) will likely fail, so keep the RC sign near the train when using this.