1. Wiki
  2. /实体
  3. /minecraft:dash_action

minecraft:dash_action

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:dash_action。Get GodCraft

概览

minecraft:dash_action 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 让骑乘者控制实体快速向前冲刺,就像骆驼一样。

字段

字段类型默认值说明
can_dash_underwaterBoolean"false"冲刺在水下是否也有效。
cooldown_timeDecimal"1.00"实体再次冲刺前的秒数。
directionString"entity"冲刺方向:朝 "entity" 面向的方向,或朝 "passenger" 看的方向。
horizontal_momentumDecimal"1.00"向前推力的强度。
vertical_momentumDecimal"1.00"向上推力的强度。

示例

写在 BP/entities/<name>.json 的 components 对象中(值为默认值或占位值):

BP/entities/<name>.json
{
  "minecraft:dash_action": {
    "can_dash_underwater": "false",
    "cooldown_time": "1.00",
    "direction": "entity",
    "horizontal_momentum": "1.00",
    "vertical_momentum": "1.00"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more