TrainCarts/MobEntering [ja]

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "モブをトロッコに乗せるには、collisionプロパティを使います。デフォルトではオフになっており、モブを乗らせることはできません。これをオンにするには、列車を選択したあと、次のコマンドを入力します。 <pre>/train collision mobs enter</pre>")
(Created page with "{| class="wikitable" |- ! YAMLキー(カテゴリ) !! カテゴリの説明 |- | pet || 手懐けられる動物。 |- | jockey || クモ、スケルトン、ゾンビ、ニワトリのような、ジョッキーとして出現する可能性のあるモブ。 |- | killer_bunny || 殺人ウサギ。 |- | npc || 村人のようなNPC。 |- | animal || コウモリやイカのような、受動的ないきもの。 |- | monster || ゴーレム、ファントム、ス...")
 
(10 intermediate revisions by the same user not shown)
Line 5: Line 5:
<pre>/train collision mobs enter</pre>
<pre>/train collision mobs enter</pre>


<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|詳しくはこちらのページをご覧ください。]]
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 37: Line 26:
     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 46: Line 33:
     monster: ENTER
     monster: ENTER
</pre>
</pre>
You can leave previous options if they existed.
既に以前設定したものがあれば、残しておいても構いません。
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
現在のバージョンのTrainCartsであれば、これでも動作します。
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">
''mobs''のほかにも、衝突のオプションに指定できる、さまざまな種類のモブの細かいカテゴリが用意されています。これらは大文字小文字を区別し、小文字でなければいけません。新しいバージョンのTrainCartsでは、複数形を指定しても動作します。
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 || ボス。エンダードラゴンとウィザーです。
|}
|}
</div>

Latest revision as of 02:40, 18 June 2026

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

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

現在のバージョンのTrainCartsであれば、これでも動作します。

  collision:
    mobs: ENTER

そうしたら、サーバーを再起動するか、このコマンドを打ち込んでください。

/train globalconfig reload --defaulttrainproperties

他のオプション

mobsのほかにも、衝突のオプションに指定できる、さまざまな種類のモブの細かいカテゴリが用意されています。これらは大文字小文字を区別し、小文字でなければいけません。新しいバージョンのTrainCartsでは、複数形を指定しても動作します。

YAMLキー(カテゴリ) カテゴリの説明
pet 手懐けられる動物。
jockey クモ、スケルトン、ゾンビ、ニワトリのような、ジョッキーとして出現する可能性のあるモブ。
killer_bunny 殺人ウサギ。
npc 村人のようなNPC。
animal コウモリやイカのような、受動的ないきもの。
monster ゴーレム、ファントム、スライムを含む、敵対的なモブ。
passive 受動的なモブ。animalと大きく重なります。
neutral エンダーマンのような中立的なモブ。
hostile クリーパーなどの、敵対的なモブ。
tameable petと同じで手懐けられる動物です。
utility 便利なモブ。ゴーレムだけです。
boss ボス。エンダードラゴンとウィザーです。