The player’s ability to interact with mobs through corners is inconsistent. Specifically, a mob can push the player (or another mob) through a corner, but depending on the player’s viewing angle, they may not be able to punch or right-click said mob.
To reproduce:
/setblock ~1 ~ ~1 stone
/setblock ~1 ~1 ~ minecraft:oak_shelf[facing=north]
/setblock ~ ~1 ~1 minecraft:oak_shelf[facing=west]
Enable hitbox rendering with F3+B
/execute align xyz run summon minecraft:chicken ~1.2 ~1 ~1.2 {NoAI:1b}
The chicken is right up against the shelves, as much as would naturally be possibleWalk into the corner
Note how the chicken pushes you back when you release WSwitch to survival, and switch to your fist
/execute align xyz run teleport @s ~0.5 ~ ~0.5 -45 20
Left-click
You do not hit the chicken, and instead begin breaking the shelf/execute align xyz run teleport @s ~0.5 ~ ~0.5 -45 15
Left-click
You succeed in punching the chicken
Expected behavior
The player’s ability to punch or right-click a mob pressed up against a corner should be consistent with itself and with the player’s ability to collide with said mob.
Environment
Windows 11, Java 21.0.7
Thanks for Reporting to MoJira but for me this just looked like you
interacted with the shelf to break it and the Punched Chicken Normaly. Do you have any more information abt. this?
-Toucka