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

follow_range attribute not working for piglins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 20w19a
    • Fix Version/s: None
    • Confirmation Status:
      Unconfirmed
    • Category:
      Commands, Mob behaviour

      Description

      Piglins are not affected by the /attribute command when modifying the follow_range attribute. The command is effective on piglins when using other attributes such as movement_speed. I compared two piglins with different follow_ranges in the attached screenshots. The red blocks indicate at which point they would begin to shoot at me, the green block indicates when they would lock on to me with their crossbows, and the blue block indicates when they would lose focus on me. The pillager is used for reference to show that the follow_range attribute was working on other mobs. The commands I used to modify the piglin was 

      /attribute @e[type=minecraft:piglin,limit=1,sort=nearest] minecraft:generic.follow_range base set 2
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Frimp2 Lathan Pham
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: