Difference between revisions of "Translations:TrainCarts/TrainProperties/8/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
 
Line 65: Line 65:
 
|-
 
|-
 
|tickets
 
|tickets
|string[]
+
|字符串数组
 
|内部使用。
 
|内部使用。
 
|-
 
|-
Line 142: Line 142:
 
|-
 
|-
 
|owners
 
|owners
|string[]
+
|字符串数组
 
|设置列车的车主。
 
|设置列车的车主。
 
|-
 
|-
 
|ownerPermissions
 
|ownerPermissions
|string[]
+
|字符串数组
 
|内部使用。
 
|内部使用。
 
|-
 
|-
 
|tags
 
|tags
|string[]
+
|字符串数组
 
|设置列车的标签。
 
|设置列车的标签。
 
|-
 
|-
Line 158: Line 158:
 
|-
 
|-
 
|blockBreakTypes
 
|blockBreakTypes
|string[]
+
|字符串数组
 
|设置一组方块类型,当矿车通过这些方块时,列车会破坏掉这些方块,这些方块需要位于轨道的两侧。
 
|设置一组方块类型,当矿车通过这些方块时,列车会破坏掉这些方块,这些方块需要位于轨道的两侧。
 
示例用法:
 
示例用法:

Latest revision as of 07:05, 9 October 2024

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 布尔值 设置是否启用环境矿车声音。
displayName 字符串 设置列车的显示名称。
allowPlayerTake 布尔值 设置列车是否允许玩家离开车时带着矿车。
requirePoweredMinecart 布尔值 设置列车是否需要动力矿车才能运行。
trainCollision 布尔值 设置列车是否可以与其他实体发生碰撞。
collisionDamage 双精度浮点数 设置列车与实体碰撞时造成的伤害值。
keepChunksLoaded 布尔值 设置列车是否加载附近的区块。
speedLimit 双精度浮点数 设置列车的最大速度,单位为方块/刻。
wait.distance
wait.delay
wait.acceleration
wait.deceleration
双精度浮点数 Distance 设置列车前方有另一辆列车时等待保持的距离。

Delay 设置列车完全停止后启动的延迟。 Acceleration/deceleration 设置保持距离时的最大速度变化(加速/减速)。

suffocation 布尔值 设置列车上的乘客是否会收到窒息伤害。
killMessage 字符串 设置玩家或命名实体<ref>输入字符串时使用 %0% 来显示玩家或实体名称。例如,与列车发生碰撞并死亡时会显示 "%0% 被列车压碎了。"</ref>。
banking.strength

banking.smoothness

双精度浮点数 设置矿车转弯时的横向倾斜程度,以及恢复正常状态所需的时间。
slowDown 布尔值 设置列车是否会受到摩擦力和重力的影响。
allowManualMovement 布尔值 设置列车的乘客是否可以使用 W 和 S 键来驾驶列车。
tickets 字符串数组 内部使用。
collision:
   players:
   passive:
   neutral:
   hostile:
   tameable:
   pet:
   animal:
   monster:
   jockey:
   killer_bunny:
   npc:
   utility:
   boss:
   train:
字符串 设置列车的碰撞模式。

支持的模式有默认、推开、销毁、击杀、击杀且不掉落物品、进入、链接、造成伤害、造成伤害且不掉落物品、跳过。

allowPlayerEnter 布尔值 设置玩家是否可以进入列车。
allowPlayerExit 布尔值 设置玩家是否可以离开列车。
invincible 布尔值 设置列车是否不可破坏。
isPublic 布尔值 设置列车是否允许非车主人员进入。
pickUp 布尔值 设置列车中的运输矿车是否可以捡起物品。
exitOffset
   ==: vector
   x:
   y:
   z:
双精度浮点数 设置玩家离开列车时下车的位置相对于列车的偏移量。
exitYaw 双精度浮点数 设置玩家下车时的朝向。
exitPitch 双精度浮点数 设置玩家下车时的俯仰角度。
destination 字符串 设置列车的目的地。
enterMessage 字符串 设置进入列车提示消息。
spawnItemDrops 布尔值 设置破坏方块时是否掉落物品。
矿车属性
属性 类型 描述
owners 字符串数组 设置列车的车主。
ownerPermissions 字符串数组 内部使用。
tags 字符串数组 设置列车的标签。
driveSound 字符串 矿车开动时播放的声音。
blockBreakTypes 字符串数组 设置一组方块类型,当矿车通过这些方块时,列车会破坏掉这些方块,这些方块需要位于轨道的两侧。

示例用法:

 - DIRT
 - COBBLE