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

minecraft:break_blocks

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

概览

minecraft:break_blocks 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 让实体只要走进某些方块就能把它们撞碎。适合需要横冲直撞穿过植物或栅栏的大型生物。

字段

字段类型默认值说明
breakable_blocksList无实体移动穿过时会破坏的方块。

示例

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

BP/entities/<name>.json
{
  "minecraft:break_blocks": {
    "breakable_blocks": {}
  }
}

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