-
Bug
-
Resolution: Invalid
-
None
-
1.21.4
-
None
-
Confirmed
-
Commands, Mob behaviour
By default, camels have a minecraft:step_height of 1.5, which allows them to pathfind over fences without any issues. Lowering this value makes them try to pathfind around fences if possible (see MC-279146). However, setting this attribute to 1.5 or higher for other mobs does not let them pathfind over fences or walls. It's also important to note that modifying the minecraft:step_height attribute correctly influences the pathfinding behavior of mobs in other scenarios where fences are not involved. For example, building a pillar at or below the height specified by the attribute will cause mobs to walk over it as intended.
How to reproduce:
- Create an area enclosed by fences
- Spawn a cow inside it
/attribute @n[type=minecraft:cow] minecraft:step_height base set 1.5
- Attempt to lure it across the fences
Expected result
The cow would move over the fences toward you
Observed result
The cow does not attempt to walk over the fences, unlike camels.
- relates to
-
MC-279146 Camels with a minecraft:step_height attribute set below 1.5 attempt to jump over fences but fail
- Resolved