编辑

Block Components Documentation - minecraft:collision_box

Defines the area of the block that collides with entities. If set to true, default values are used (a full 16x16x16 block). If set to false, the block's collision with entities is disabled, allowing entities to pass through. If this component is omitted, default values are used.

Alternate Simple Representations

This item can also be represented as a Boolean true/false.

Collision Box Properties

Name Default Value Type Description
origin [-8, 0, -8] x, y, z coordinate array Minimal position of the bounds of the collision box. "origin" is specified as [x, y, z] and must be in the range (-8, 0, -8) to (8, 24, 8), inclusive.
size [16, 24, 16] x, y, z coordinate array Size of each side of the collision box. Size is specified as [x, y, z]. "origin" + "size" must be in the range (-8, 0, -8) to (8, 24, 8), inclusive.

Samples

"minecraft:collision_box": {
  "origin": [
    -8,
    0,
    -8
  ],
  "size": [
    16,
    16,
    16
  ]
}

Block Fabricator

"minecraft:collision_box": true

Block Leaf Pile

"minecraft:collision_box": {
  "origin": [
    -8,
    2,
    -8
  ],
  "size": [
    16,
    4,
    16
  ]
}