Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-279162

Mobs with a minecraft:step_height attribute of 1.5 or greater, excluding camels, do not pathfind over fences

XMLWordPrintable

    • Icon: Bug 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:

      1. Create an area enclosed by fences
      2. Spawn a cow inside it
      3. /attribute @n[type=minecraft:cow] minecraft:step_height base set 1.5
      4. 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.

        1. buuuuugg.mp4
          8.62 MB
          The Gullyman 4

            Unassigned Unassigned
            Gullyman4 The Gullyman 4
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: