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
physicscollision_boxtype_familyconditional_bandwidth_optimizationnameableis_hidden_when_invisiblepushable_by_blockpushable_by_entitylootcan_climbis_babyballoonableambient_sound_intervalvariantpushablepersistentis_tameddimension_boundis_saddledinput_ground_controlledis_shakingmark_variantrenders_when_invisiblecan_fly