TrainCarts/Train Spawn Chest [ja]

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "{{Command|train chest mytrain|新しいトレインチェストに名前付きで保存された列車を格納し、プレイヤーにあげる|train.command.chest.create}}")
(Created page with "トレインチェストの中の列車を更新するには、アイテムを手に持った状態でコマンドを使います。")
Line 24: Line 24:
  {{Command|train chest mytrain|新しいトレインチェストに名前付きで保存された列車を格納し、プレイヤーにあげる|train.command.chest.create}}
  {{Command|train chest mytrain|新しいトレインチェストに名前付きで保存された列車を格納し、プレイヤーにあげる|train.command.chest.create}}


<div lang="en" dir="ltr" class="mw-content-ltr">
トレインチェストの中の列車を更新するには、アイテムを手に持った状態でコマンドを使います。
To update the pattern stored in the spawn chest, hold the item to update and use:
</div>


  <div lang="en" dir="ltr" class="mw-content-ltr">
  <div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 01:59, 17 June 2026

Other languages:

概要

トレインチェストは列車をを収納し、またスポーンさせることができます。

トレインチェストは、列車の情報を保持できる特殊アイテムです。これを持って列車を右クリックすると、アイテム内に列車が格納されます。その後、レールの上でまた右クリックすると、先程格納した列車がスポーンします。その列車に関するあらゆるプロパティは保存されます。

列車をスポーンさせるとき、他の列車が近くにあると連結します。また、スポーン時の車両の向きはプレイヤーの向いている方向によって決まります。

権限とセキュリティ

スポーンチェストはチェスト付きトロッコを収納することで、アイテム増殖バグのように、あらゆるアイテムを複製するのに使えます。そのため、サバイバルではtrain.command.chest.use権限を剥奪するなど、権限を適切に管理してください。また、train.spawner.storagetrain.spawner.hopperの権限はアイテムを内包した列車をスポーンさせられないようにすることもできます。

つかいかた

トレインチェストを入手するには、このコマンドを使ってください。

プレイヤーに空っぽのトレインチェストをあげる
Command: /train chest
Permission: train.command.chest.create


既存の列車を右クリックすることでトレインチェストに列車を格納でき、またレールをクリックすることでスポーンさせることができます。 この動作のためにはtrain.command.chest.use権限が必要です。


スポーンパターン

Spawnサインと同じように、列車のスポーンパターンを記述してトレインチェストに列車を直接入れ込むことができます。


新しいトレインチェストに名前付きで保存された列車を格納し、プレイヤーにあげる
Command: /train chest mytrain
Permission: train.command.chest.create


トレインチェストの中の列車を更新するには、アイテムを手に持った状態でコマンドを使います。

Put a new train inside the item, spawn pattern syntax
Command: /train chest set mytrain
Permission: train.command.chest.create


Special Commands

Hold the item to update and use:

Makes the item empty
Command: /train chest clear
Permission: train.command.chest.create


Locks the item, preventing it from picking up trains when clicked
Command: /train chest lock
Permission: train.command.chest.create


Unlocks the item so it can pick up trains again
Command: /train chest unlock
Permission: train.command.chest.create


Gives the item a human-readable name to identify it
Command: /train chest name My Train
Permission: train.command.chest.create


Makes the chest item have finite (1) or infinite number of spawns
Command: /train chest finite yes
Permission: train.command.chest.create


Makes the chest item spawn the train with an initial speed of 2 blocks/tick
Command: /train chest speed 2.0
Permission: train.command.chest.create


Giving to other players

You can give a completely configured item to other players. This command can also be executed from command blocks, and supports the @p syntax for that purpose.

Gives a train chest item to a player
Command: /train chest give PlayerName
Permission: train.command.chest.create


This command supports all the same updating options but as flags.

Gives a single-use spawn chest that spawns the Intercity01 train. Can not be used to pick up trains.
Command: /train chest give bergerkiller --finite --locked --train Intercity01
Permission: train.command.chest.create