TrainCarts/MobEntering [ja]

From BergerHealer Wiki
Revision as of 02:32, 18 June 2026 by Saihou-Heiki (talk | contribs) (Created page with "そしてそれをこう変更します。 <pre> collision: animal: ENTER monster: ENTER </pre> 既に以前設定したものがあれば、残しておいても構いません。")
Jump to navigation Jump to search
Other languages:

トロッコへモブを乗せる

モブをトロッコに乗せるには、collisionプロパティを使います。デフォルトではオフになっており、モブを乗らせることはできません。これをオンにするには、列車を選択したあと、次のコマンドを入力します。

/train collision mobs enter

このコマンドは選択中の列車にだけ効果を及ぼします。

デフォルトのふるまい

もし上記のような設定なしでモブも乗れるようにしたい場合、ふたつの方法があります。ひとつ目は、プレイヤーの設置したトロッコをそもそもバニラの挙動にするということ。ただ、こちらはプラグインの列車機能は使えなくなります。詳しくはこちらのページをご覧ください。

もうひとつの方法は、plugins/Train_Carts/DefaultTrainProperties.ymlを編集して、設置されたトロッコのデフォルトのプロパティを変更することです。

設定はいくつかのブロックに分かれています。

  • defaultは普通のプレイヤー。
  • admintrain.properties.admin権限を持つプレイヤー。デフォルトだとOPです。
  • spawnerはSpawnerサインでmやsやpなどの記法を用いてスポーンさせた列車です。これは保存済みの列車には影響しません。

カテゴリーを編集したい時は、この行を探してください。

collision: {}

あるいは、すでに設定があればこのようなものがあるかもしれません。

  collision:
    players: DEFAULT
    misc: PUSH
    train: LINK
    block: DEFAULT

そしてそれをこう変更します。

  collision:
    animal: ENTER
    monster: ENTER

既に以前設定したものがあれば、残しておいても構いません。

On more modern versions of TrainCarts this can work too:

  collision:
    mobs: ENTER

Then, either restart the server, or run this command:

/train globalconfig reload --defaulttrainproperties

Other Options

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.

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.