编辑

通过


Entity Documentation - minecraft:collision_box

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

Collision Box Properties

Name Default Value Type Description Example Values
height 1 Decimal number Height of the collision box in blocks. A negative value will be assumed to be 0. Allay: 0.6, Armor Stand: 1.975, Arrow: 0.25
width 1 Decimal number Width of the collision box in blocks. A negative value will be assumed to be 0. Min value is -100000000.000000 Max value is 100000000.000000 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
}