1. Wiki
  2. /实体
  3. /minecraft:annotation.break_door

minecraft:annotation.break_door

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

概览

minecraft:annotation.break_door 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 告诉寻路系统此生物可以破门而入。需要搭配允许穿过门的导航组件。

字段

字段类型默认值说明
break_timeDecimal"12.0"生物砸破一扇门需要的秒数。
min_difficultyString"hard"允许生物破门的最低世界难度。

示例

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

BP/entities/<name>.json
{
  "minecraft:annotation.break_door": {
    "break_time": "12.0",
    "min_difficulty": "hard"
  }
}

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