mojira.dev
MC-300366

The player's ability to interact with mobs through corners is inconsistent

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:

  1. /setblock ~1 ~ ~1 stone

  2. /setblock ~1 ~1 ~ minecraft:oak_shelf[facing=north]

  3. /setblock ~ ~1 ~1 minecraft:oak_shelf[facing=west]

  4. Enable hitbox rendering with F3+B

  5. /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 possible

  6. Walk into the corner
    Note how the chicken pushes you back when you release W

  7. Switch to survival, and switch to your fist

  8. /execute align xyz run teleport @s ~0.5 ~ ~0.5 -45 20

  9. Left-click
    You do not hit the chicken, and instead begin breaking the shelf

  10. /execute align xyz run teleport @s ~0.5 ~ ~0.5 -45 15

  11. 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

Attachments

Comments 3

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

When I go to the side of the shelf (or an irregular block), the chicken's hitbox pushes me back

Can confirm, rewrote report

Lucachinou

(Unassigned)

Confirmed

Platform

Low

Entities

1.21.8, 25w31a

Retrieved