Difference between revisions of "TrainCarts/TrainProperties/zh-cn"

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "{| class="wikitable" |+列车属性 !属性 !类型 !描述 |- |soundEnabled |布尔值 |设置是否启用环境矿车声音。 |- |displayName |字符串 |设置列车的显...")
Line 64: Line 64:
 
|-
 
|-
 
|wait.distance<br>wait.delay<br>wait.acceleration<br>wait.deceleration
 
|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
+
|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
 
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)
 
Acceleration/deceleration sets the maximum change of speed at which it maintains distance (speeds up/slows down)

Revision as of 01:40, 9 October 2024

Other languages:
English • ‎中文(中国大陆)‎

« 返回


介绍

在 DefaultTrainProperties.yml 和 TrainProperties.yml 中,你可以为列车设置属性,比如列车碰撞时会发生什么。DefaultTrainProperties.yml 配置列车生成时的默认属性,而 TrainProperties.yml 则是配置已存在的列车。

DefaultTrainProperties.yml 可分别配置三种权限新生成的列车属性:默认、管理员和生成牌。这些属性列表可以通过以下方法设置:

通过权限
给予他人创建列车某些属性的权限(train.property.**** -> train.property.default),

通过控制牌

Signtemplate.png
[+train]
property
setdefault
<name>

通过命令
选中列车(潜行打击一下)并输入 "/train setdefault default|admin|spawner"。

如果使用下表作为值的参考,则所有矿车属性也将是默认列车属性的一部分。

你还可以使用 /train <属性名称> <值> 设置列车或矿车的某个属性。属性名称列表描述如下。


属性

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