编辑

Entity Documentation - minecraft:collision_box

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

Entity Collision Box Properties

Name Default Value Type Description Example Values
height 1.7999999523162842 Decimal number Height of the collision box in blocks. A negative value will be assumed to be 0. Value must be >= -100000000. Value must be <= 100000000. Allay: 0.6, Armor Stand: 1.975, Arrow: 0.25
width 0.6000000238418579 Decimal number Width and Depth of the collision box in blocks. A negative value will be assumed to be 0. Value must be >= -100000000. Value must be <= 100000000. Allay: 0.35, Armor Stand: 0.5, Arrow: 0.25

Samples

Allay

"minecraft:collision_box": {
  "height": 0.6,
  "width": 0.35
}

Armor Stand

"minecraft:collision_box": {
  "height": 1.975,
  "width": 0.5
}

Arrow

"minecraft:collision_box": {
  "height": 0.25,
  "width": 0.25
}

Bat

"minecraft:collision_box": {
  "height": 0.9,
  "width": 0.5
}

Blaze

"minecraft:collision_box": {
  "height": 1.8,
  "width": 0.5
}