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

Mobs seem to stop utilizing their AI while their data is being modified?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 20w16a, 20w19a
    • None
    • Unconfirmed
    • (Unassigned)

      May affect older versions, have not tested

       

      Mobs appear to stop all pathfinding and behavior in general while their data is being modified with commands.

      One way to reproduce:

      Create a function file called test:modify containing the following text:
      {{}}

      data merge entity @s {IsImmuneToZombification:0b}

      scoreboard players add @s corrupt_time 1

      execute as @s store result entity @s TimeInOverworld int 1.0 run scoreboard players get @s corrupt_time

      Then, using either a repeating command block or the #minecraft:tick function tag, loop the function every tick.

      You should see that all piglins in the world stop moving completely due to their TimeInOverworld tag being changed to a different value every tick.

            Unassigned Unassigned
            ChromaKey81 ChromaKey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: