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

Attribute "follow_range" is not working for hostile mobs before they find the target

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w33a
    • Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 1, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3 Pre-Release 4, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 1, Minecraft 1.14.4 Pre-Release 2, Minecraft 1.14.4 Pre-Release 5, 1.14.4, 19w34a, 19w35a, 19w36a, 19w37a, 19w38b, 19w39a, 19w40a, 19w41a, 19w42a, 19w44a, 19w45b, 19w46a, 19w46b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13a, 20w13b, 20w14a, 20w15a, 20w16a, 20w17a, 20w18a, 20w19a, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5 Release Candidate 1, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w08a, 21w10a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 3, 1.17 Pre-release 4, 1.17 Release Candidate 1, 1.17 Release Candidate 2, 1.17, 1.17.1, 21w37a, 21w38a, 21w39a, 21w42a, 21w43a, 1.18 Pre-release 1, 1.18, 1.18.1, 22w06a, 1.18.2, 22w12a, 22w14a, 1.19.2, 22w43a, 1.19.3, 23w03a, 1.19.4 Pre-release 1, 1.20.1, 1.20.4, 23w51b, 24w05b, 24w13a, 24w14a, 1.20.5 Release Candidate 2, 1.21
    • None
    • Confirmed
    • Commands, Mob behaviour
    • Low
    • Platform

      When you summon a hostile mob with /summon command and "Attributes" tag, the "follow_range" is ineffective, if you are far from this hostile mob, it won't chase you unless you close to it, just like their "follow_range" is default
      The command is

      /summon minecraft:skeleton ~ ~ ~ {Attributes:[{Name:generic.follow_range,Base:100}],PersistenceRequired:1}

      Remember to change the time to night, or the skeleton will be burned to death
      I don't know which version did this issue appeared, but it exactly didn't happen in 1.13

      OK, I tested it again today, When the skeleton find you, the "follow_range" will be useful as usual, it will keep chaseing you unless you run out its changed "follow_range"(you set) not its default "follow_range", this bug will only happens before the hostile mobs find you.

      Code analysis

      Code analysis by insane96mcp can be found in this comment.

            cojomax99 [Mojang] Cory Scheviak
            BLack_Tea_RGO BLack_Tea_RGO
            Votes:
            109 Vote for this issue
            Watchers:
            58 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: