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

Pillager patrolling AI doesn't work properly using commands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.1, 1.18, 1.18.1, 22w03a, 1.19.1, 23w35a
    • Confirmed
    • Commands, Mob behaviour

      Pillager Patrolling AI does not and has not worked for 2 years now. It has been this way ever since December 2019 when 1.15 came out (the update that broke it)

      You can try it out for yourself:
       
      /summon minecraft:pillager ~ ~ ~ {Patrolling:1b,PatrolLeader:1b,PatrolTarget:{X:60,Y:60,Z:60}}

      When the Pillager spawns, it will set their NBT data accordingly, but it will instantly unset the "Patrolling" NBT tag from 1b to 0b.

      Changing this data manually with /data merge entity @e[type=minecraft:pillager,sort=nearest,limit=1]

      {Patrolling:1b}

      will not fix it, it will instantly default back to 0b, unless you are not in creative mode and are within aggro range of the pillager.

      Even if they happen to keep their Patrolling NBT data at 1b, they will not path to their PatrolTarget location.

            Unassigned Unassigned
            Dyslexist Dyslexist
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: