minecraft:custom_hit_test

Dynamic value

Properties

This component has no properties in the official schema: add it as an empty object {} to switch the behaviour on.

Example from the game files

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

{
  "minecraft:custom_hit_test": {
    "hitboxes": [
      {
        "width": 1.0,
        "height": 0.85,
        "pivot": [
          0,
          0.5,
          0
        ]
      }
    ]
  }
}

Used by 2

Vanilla entities with minecraft:custom_hit_test in their definition:

Related components