minecraft:collision_box

Sets the width and height of the Entity's collision box.

Properties

PropertyTypeDefaultWhat it does
widthDecimal-100000000 to 1000000000.6Width and Depth of the collision box in blocks. A negative value will be assumed to be 0.
heightDecimal-100000000 to 1000000001.8Height of the collision box in blocks. A negative value will be assumed to be 0.

Example from the game files

This is how vanilla Rabbit uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:collision_box": {
    "width": 0.81666666,
    "height": 1.0
  }
}

Used by 124

Vanilla entities with minecraft:collision_box in their definition:

Related components