minecraft:collision_box for you with a switch.Get GodCraftOverview
minecraft:collision_box is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Sets the size of the box the entity uses to bump into blocks and other entities. Keep it close to the size of your model.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
width | number | 0.6 | Width and depth of the box in blocks.Range: -100000000 to 100000000 |
height | number | 1.8 | Height of the box in blocks.Range: -100000000 to 100000000 |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:collision_box": {
"width": 0.6,
"height": 1.8
}
}