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

The universalAnger gamerule ruins mobs' follow_range

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.4, 23w17a, 1.20.4
    • None
    • Confirmed
    • Commands, Mob behaviour
    • Normal
    • Platform

      As you can see, you can use damage commands to make mobs chase you from a distance. But if I set the universalAnger rule to true, it doesn't work.

      1. Apply this NBT to mobs:
        execute as @e[type=!player] run data merge entity @s {PersistenceRequired:1b,Attributes:[{Name:generic.follow_range,Base:200}]}
      2. Now go far and let this command work:
        execute as @e[type=skeleton] run damage @s 0 minecraft:arrow by @p

        The skeleton chases the player.

      3. Set the universalAnger rule to true and go through step 1 and step 2 again
        The skeleton doesn't chase the player.

            Unassigned Unassigned
            Alex_light Alex_light
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: