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

Modifying Enderman AngryAt data with commands doesn't work if the entity isn't a player

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.20.1, 23w35a
    • None
    • Confirmed
    • Commands, Mob behaviour

      The bug

      When you use /data modify entity on Endermen and use it to set their AngryAt data to the player's UUID it works, but when you run the exact same command but with a mob it doesn't aggro the Enderman onto that mob.

      How to reproduce

      1. Spawn a pig
      2. Spawn an Enderman that is "AngryAt" the pig:
        /execute summon enderman run data modify entity @s AngryAt set from entity @e[type=pig,limit=1,sort=nearest] UUID

        The Enderman doesn't attack the pig

            Unassigned Unassigned
            iNkoR_the_2nd iNkoR_the_2nd
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: