When the player is automatically sneaking when underneath a slab, foxes and ocelots still run away from players, even if the player is sneaking underneath a slab.
To reproduce
Place a slab above you
Spawn a fox
→ ❌ its running away from you
Linked issues
relates to 4
Attachments
Comments 2


Sneaking by being in a 1.5 blocks high place also doesn't cause all effects that manuel sneaking (sneaking by pressing shift or toggling it with shift) does. That could be the reason. It doesn't cause you to not fall down from blocks MC-151547 and it doesn't cause you to be able to place blocks against blocks with a right action like crafting table. But I think that is intentional.
Confirmed. Foxes immediately run away when releasing the sneak key even though you are still sneaking.