TrainCarts/TrainProperties/8 [ja]

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "{| class="wikitable" |+列車のプロパティ !プロパティ !型 !説明 |- |soundEnabled |boolean |トロッコの環境音が有効かどうか。 |- |displayName |string |列車の表示名。 |- |allowPlayerTake |boolean |プレイヤーが列車を持ち出すことを許可するかどうか。 |- |requirePoweredMinecart |boolean |トロッコが動作するのに電源を必要とするかどうか。 |- |trainCollision |boolean |列車が他のエンティ...")
 
No edit summary
Line 166: Line 166:


なお補足ですが、データの型には以下のようなものがあります。
なお補足ですが、データの型には以下のようなものがあります。
- '''string''':文字列。シンプルに文字列で、そのままsaihouheikiとか指定できます。
- '''string''':文字列。シンプルに文字列で、そのままsaihouheikiとか指定できます。
- '''boolean''':真偽値。分かりやすく言うと、true(はい)かfalse(いいえ)です。
- '''boolean''':真偽値。分かりやすく言うと、true(はい)かfalse(いいえ)です。
- '''double''':小数、より詳しく言うなら倍精度不動小数点数。0.308など、コンマ以下も詳しく設定できる数字という認識で大丈夫だと思います。
- '''double''':小数、より詳しく言うなら倍精度不動小数点数。0.308など、コンマ以下も詳しく設定できる数字という認識で大丈夫だと思います。
- '''配列''':たぶんデータの型に付加できるオプションという認識で大丈夫だと思います。''string[]''のように、大カッコをつけると配列になり、その型を複数列挙して指定できるようになります。
- '''配列''':たぶんデータの型に付加できるオプションという認識で大丈夫だと思います。''string[]''のように、大カッコをつけると配列になり、その型を複数列挙して指定できるようになります。

Revision as of 00:48, 19 June 2026

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (TrainCarts/TrainProperties)
{| class="wikitable"
|+Train Properties
!Property
!Type
!Description
|-
|soundEnabled
|boolean
|Sets whether ambient minecart sounds are enabled
|-
|displayName
|string
|Sets the display name of the train
|-
|allowPlayerTake
|boolean
|Sets whether the train supports players taking minecarts with them when they leave
|-
|requirePoweredMinecart
|boolean
|Sets whether the train needs a powered minecart to function
|-
|trainCollision
|boolean
|Sets whether the train can collide with other entities
|-
|collisionDamage
|double
|Sets the amount of damage the train does when colliding with entites
|-
|keepChunksLoaded
|boolean
|Sets whether this train keeps nearby chunks loaded
|-
|speedLimit
|double
|Sets the maximum speed of the train in blocks per tick
|-
|wait.distance<br>wait.delay<br>wait.acceleration<br>wait.deceleration
|double values
|Distance sets the distance the train will wait to maintain a distance between itself and a train ahead
Delay sets the time the train waits when stopped completely
Acceleration/deceleration sets the maximum change of speed at which it maintains distance (speeds up/slows down)
|-
|suffocation
|boolean
|Sets whether passengers inside this train can sustain suffocation damage
|-
|killMessage
|string
|Sets the message displayed when a player or named entity<ref>Use %0% to display the player or entity's name when entering the string. For example, "%0% was crushed by a rolling minecart"</ref> dies to a minecart collision. 
|-
|banking.strength
banking.smoothness
|double
|Sets how much a cart will bank sideways with strength when cornering and how long it will take to return to normal with smoothness
|-
|slowDown
|boolean
|Sets whether a minecart will experience friction and gravity
|-
|allowManualMovement
|boolean
|Sets whether minecart passengers can manually move the train they are in with W and S
|-
|tickets
|string[]
|Used internally
|-
|collision: 
   players:
   passive:
   neutral:
   hostile:
   tameable:
   pet:
   animal:
   monster:
   jockey:
   killer_bunny:
   npc:
   utility:
   boss:
   train:
|string
|Sets a collision mode for the train.
Allowed modes are default, push, cancel, kill, killnodrops, enter, link, damage, damagenodrops, skip
|-
|allowPlayerEnter
|boolean
|Sets whether players can enter the train
|-
|allowPlayerExit
|boolean
|Sets whether players can exit the train
|-
|invincible
|boolean
|Sets whether the train is invincible
|-
|isPublic
|boolean
|Sets whether non-owners of the train can enter
|-
|pickUp
|boolean
|Sets whether storage minecarts in the train can pick up items
|-
|exitOffset 
   ==: vector
   x:
   y:
   z:
|double
|Sets the offset relative to the train in which players will teleport to when they exit the train
|-
|exitYaw
|double
|Sets the yaw of the player's view when they exit the train
|-
|exitPitch
|double
|Sets the pitch of the player's view when they exit the train
|-
|destination
|string
|Sets the destination of the train
|-
|enterMessage
|string
|Sets a message to display when entering the train
|-
|spawnItemDrops
|boolean
|Sets whether broken blocks should drop items
|}
{| class="wikitable"
|+Cart Properties
!Property
!Type
!Description
|-
|owners
|string[]
|Sets a list of owners' names of the 
|-
|ownerPermissions
|string[]
|Used internally
|-
|tags
|string[]
|Sets a list of tags the train has
|-
|driveSound
|strring
|Sets the sound that plays when the cart rolls
|-
|blockBreakTypes
|string[]
|Sets an array of block types the cart will break which are one block directly to the left and right of the rails when it passes them
Example usage:
  - DIRT
  - COBBLE
|}
列車のプロパティ
プロパティ 説明
soundEnabled boolean トロッコの環境音が有効かどうか。
displayName string 列車の表示名。
allowPlayerTake boolean プレイヤーが列車を持ち出すことを許可するかどうか。
requirePoweredMinecart boolean トロッコが動作するのに電源を必要とするかどうか。
trainCollision boolean 列車が他のエンティティと衝突するかどうか。
collisionDamage double 列車が他のエンティティと衝突したときのダメージ量。
keepChunksLoaded boolean この列車が周辺のチャンクをロードしたままにするかどうか。
speedLimit double 列車の最大速度。ブロック毎ティックで指定します。
wait.distance
wait.delay
wait.acceleration
wait.deceleration
double values wait.distanceは、前方の列車とどのくらいの距離を置くかどうかを表します。

wait.delayは、列車が停止する時にどれくらい時間を要するかです。 wait.accelerationとdecelerationは、距離を維持したままどのくらいの加減速を変更できるかです。

suffocation boolean 列車の乗客が窒息ダメージを受けるかどうかです。
killMessage string プレイヤーか名前のついたエンティティ<ref>メッセージを表記するとき、エンティティの名前は%0%と表記してください。たとえば、"%0%は列車と衝突した"という感じです。</ref>が列車の衝突で死亡したときのメッセージです。
banking.strength

banking.smoothness

double コーナリング時にどのくらい列車が横へ傾くか、またスムーズに通常へ戻るにはどのくらいの時間を要するかです。
slowDown boolean トロッコが摩擦や重力による減速をするかどうかです。
allowManualMovement boolean トロッコの乗客がWとSキーによる手動の移動をできるかどうかです。
tickets string[] 内部的に使われています。
collision:
   players:
   passive:
   neutral:
   hostile:
   tameable:
   pet:
   animal:
   monster:
   jockey:
   killer_bunny:
   npc:
   utility:
   boss:
   train:
string 列車の衝突モードを表します。

使用できるのはdefault、push、cancel、kill、killnodrops、enter、link、damage、damagenodrops、skipです。

allowPlayerEnter boolean プレイヤーが列車に乗り込めるかどうかです。
allowPlayerExit boolean プレイヤーが列車を降りられるかどうかです。
invincible boolean 列車を無敵にします。
isPublic boolean 列車のオーナーではないプレイヤーが乗り込めるかどうかです。
pickUp boolean チェスト付きのトロッコがアイテムを拾えるかどうかです。
exitOffset
   ==: vector
   x:
   y:
   z:
double 列車の乗客が降りたとき、どちらにテレポートするか。列車からの相対位置です。
exitYaw double プレイヤーが列車を降りたときの視点のヨー(横方向の回転)です。
exitPitch double プレイヤーが降りたときの視点のピッチ(上下の回転)です。
destination string 列車の目的地です。
enterMessage string 列車に乗り込んだときに表示されるメッセージ。
spawnItemDrops boolean 破壊されたブロックがアイテムをドロップするかどうか。
トロッコのプロパティ
プロパティ 説明
owners string[] トロッコの所有者の名前を指定します。
ownerPermissions string[] 内部的に使われています。
tags string[] 列車のタグのリストです。
driveSound strring トロッコが移動しているときの音です。
blockBreakTypes string[] トロッコがブロックの真横を通ったときに破壊するブロック名の配列。

たとえばこの場合だと、土と丸石を破壊します。

 - DIRT
 - COBBLE

なお補足ですが、データの型には以下のようなものがあります。

- string:文字列。シンプルに文字列で、そのままsaihouheikiとか指定できます。

- boolean:真偽値。分かりやすく言うと、true(はい)かfalse(いいえ)です。

- double:小数、より詳しく言うなら倍精度不動小数点数。0.308など、コンマ以下も詳しく設定できる数字という認識で大丈夫だと思います。

- 配列:たぶんデータの型に付加できるオプションという認識で大丈夫だと思います。string[]のように、大カッコをつけると配列になり、その型を複数列挙して指定できるようになります。