Entity Documentation - minecraft:custom_hit_test

List of hitboxes for melee and ranged hits against the entity.

Custom Hit Test Properties

Name Default Value Type Description Example Values
hitboxes not set Array of strings Comma seperated list of hitboxes. Hoglin: [{"width":1,"height":0.85,"pivot":[0,0.5,0]}], [{"width":2,"height":1.75,"pivot":[0,1,0]}]

Samples

At /minecraft:entity/component_groups/minecraft:hoglin_baby/minecraft:custom_hit_test/:

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

At /minecraft:entity/component_groups/minecraft:hoglin_adult/minecraft:custom_hit_test/:

"minecraft:custom_hit_test": {
  "hitboxes": [
    {
      "width": 2,
      "height": 1.75,
      "pivot": [
        0,
        1,
        0
      ]
    }
  ]
}