minecraft:break_blocks for you with a switch.Get GodCraftOverview
minecraft:break_blocks is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets the entity smash certain blocks just by walking into them. Handy for big mobs that should plow through plants or fences.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
breakable_blocks | List | none | Blocks the entity destroys when it moves through them. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:break_blocks": {
"breakable_blocks": {}
}
}