This causes suffocation in open shulker boxes that are not in the center of the head to occur and suffocation in shulker boxes to not occur when the center of the head is inside an open shulker box
Attachments
Comments


pls fix mojang

I was unable to reproduce this in 1.18-pre7 or 1.17. Could you provide a screenshot of a working repro case? With villagers and players, both were squished down to swimming or pushed out, but no suffocating happened.
Let me know and I'll check it out again. Thanks!

Place a mob inside a boat, so that the head of the mob is inside two blocks. Set the blocks at the head to shulker boxes using /setblock. Observe the behavior when opening the different boxes
I attached a structure file that may help. Try loading it and running these tests:
Observed results:
Both boxes closed: creeper suffocates ✔
Purple box opened: creeper suffocates ✔
Yellow box opened: creeper doesn't suffocate ❌
As far as I understand, the last case is considered to be this bug because the creeper is still inside of the purple box, and therefore should suffocate. If the yellow box is broken, the creeper correctly suffocates.
Also this is new to 1.18, presumably caused by the changes to suffocation in 21w37a