Description:
Baby hoglins and baby zoglins have collision boxs that are much smaller than their models.
Steps to Reproduce:
Spawn a baby hoglin or baby zoglin
Use lead to leash it
Move it into 0.5 blocks tall space
Observed Results:
Baby hoglin or baby zoglin can enter 0.5 blocks tall space.
Expected Results:
Baby hoglin or baby zoglin should not be able to enter 0.5 blocks tall space.
Screenshot of Issue:
Code Analysis:
Baby hoglin behavior definition from behavior_packs/vanilla_1.20.50/entities/hoglin.json:
"hoglin_baby": {
"minecraft:scale": {
"value": 0.5
},
"minecraft:collision_box": {
"width": 0.85,
"height": 0.85
}
}Baby zoglin behavior definition from behavior_packs/vanilla_1.20.50/entities/zoglin.json:
"zoglin_baby": {
"minecraft:scale": {
"value": 0.5
},
"minecraft:collision_box": {
"width": 0.85,
"height": 0.85
}
}Can find that there is a minecraft:scaled component in hoglin_baby / zoglin_baby, so baby hoglin and baby zoglin collision box will be scaled by the value of minecraft:scale. After scaled, the collision box is 0.425x0.425, which means that baby hoglins and baby zoglins can enter 0.5 blocks tall space.
How to Fix:
Removing the minecraft:scale component in hoglin_baby / zoglin_baby will resolve this issue.
"zoglin_baby": {
"minecraft:collision_box": {
"width": 0.85,
"height": 0.85
}
}"hoglin_baby": {
"minecraft:collision_box": {
"width": 0.85,
"height": 0.85
}
}Attachments
Comments 2
Per https://feedback.minecraft.net/hc/en-us/articles/44573082558349-Minecraft-Beta-Preview-26-20-22, fixed in 26.20.22 Preview:
Adjusted the hitboxes for the following mobs, to better match Java:
Baby Villager
Baby Zombie Villager
Baby Zombie Gurgle
Baby Husk
Baby Piglin
Baby Zombie Piglin
Baby Squid
Baby Glow Squid
Baby Fox
Adult Chicken
Can Confirm. Also attached video showing this bug in action.