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-separated list of hitboxes. | Hoglin: [{"width":1,"height":0.85,"pivot":[0,0.5,0]}], [{"width":2,"height":1.75,"pivot":[0,1,0]}], Zoglin: [{"height":1.75,"pivot":[0,1,0],"width":2}], [{"height":0.85,"pivot":[0,0.5,0],"width":1}] |
Samples
Hoglin
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
]
}
]
}
Zoglin
At /minecraft:entity/component_groups/zoglin_adult/minecraft:custom_hit_test/:
"minecraft:custom_hit_test": {
"hitboxes": [
{
"height": 1.75,
"pivot": [
0,
1,
0
],
"width": 2
}
]
}
At /minecraft:entity/component_groups/zoglin_baby/minecraft:custom_hit_test/:
"minecraft:custom_hit_test": {
"hitboxes": [
{
"height": 0.85,
"pivot": [
0,
0.5,
0
],
"width": 1
}
]
}