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

AngryAt NBT tag doesn't work with / is not used by certain neutral mobs (such as dolphins and pandas)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.19.2
    • None
    • Confirmed
    • Commands, Mob behaviour

      I've been avoiding posting this bug for a while now but its to frustrating to avoid.

      AngryAt NBT Tag only works with 3 mobs Wolf, Iron Golem, Polar Bear. (aka they can attack any mob/player)

      (note mobs also don't attack with increased follow range unless within default attack range probably a separate issue or intended)

      Working mobs are Wolf, Iron Golem, Polar Bear.

      If I want a skeleton to attack a villager nope doesn't work. However I can make Wolf, Iron Golem, Polar Bear attack the villager or any other mob. AngryAt also doesn't work with increased follow range for any mobs with modified AngryAt a player or mob would still have to be in attack range.

       

      Command example that doesn't work but should using skeleton attacking a villager.

      /data modify entity @e[type=minecraft:skeleton,sort=nearest,limit=1] AngryAt set from entity @e[type=minecraft:villager,limit=1,sort=nearest] UUID

       

      Another one using llama a neutral mob attacking a pig.

      /data modify entity @e[type=minecraft:llama,sort=nearest,limit=1] AngryAt set from entity @e[type=minecraft:pig,limit=1,sort=nearest] UUID

       

      Working command as Intended works with the 3 working mobs (wolf attacks villager)

      /data modify entity @e[type=minecraft:wolf,sort=nearest,limit=1] AngryAt set from entity @e[type=minecraft:villager,limit=1,sort=nearest] UUID

       

      To replicate AngryAt not working.

      Summon any mob that can attack (excluding the 3 mentioned above because they work) (example zombie) then summon any other mob that the first mob wouldn't normally attack (example pig). Then run command

      /data modify entity @e[type=minecraft:zombie,sort=nearest,limit=1] AngryAt set from entity @e[type=minecraft:pig,limit=1,sort=nearest] UUID

      (note change zombie and pig to the mobs you chose if you chose differently)

      The zombie doesn't attack the pig. If AngryAt is only intended for neutral mobs it still doesn't work for the other 8 (Panda, Bee, Dolphin, Llama, Trader Llama. then kind of neutral mobs Enderman, Goat, Snow Golem.

       

      To replicate mobs not attacking with increase follow range 

      run command

      /summon wolf ~ ~ ~ {PersistenceRequired:1b,Attributes:[

      {Name:generic.follow_range,Base:64}

      ]}

       

      Go 48 blocks away then run command

      /data modify entity @e[type=minecraft:wolf,sort=nearest,limit=1] AngryAt set from entity @p UUID

       

      The wolf won't attack unless within attack range.

       

       

       

       

            Unassigned Unassigned
            Willberfollower Willber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: