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

Mobs lose Attribute Modifiers when the player ventures too far from them

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Snapshot 13w21a, Snapshot 13w24b, Snapshot 13w25a, Snapshot 13w25b, Snapshot 13w25c
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      When a mob is given a weapon, they inherit the Attribute Modifiers on it. This includes the vanilla modifier for weapon strength, and any custom modifiers. However, when a player ventures too far from that mob, these modifiers are lost.

      Steps to Reproduce:

      1. Give a zombie a diamond sword. You must have mobGriefing set to true, and must be playing in Normal or Hard mode.
      2. When it attacks you, you should experience normal damage - on Normal difficulty, this will be 5 hearts.
      3. Move far away from this mob. Using "/tp ~0 ~150 ~0" and letting yourself fall (in Creative!) will distance you enough for this bug to occur.
      4. When you let the mob attack you again, it will deal only 1.5 hearts instead of the previous 5.

      I have attached a schematic of a bugged zombie, holding an AttributeModifier-laden sword but not bearing its effects. The zombie picked up this sword in-game, and I ventured too far from it. I have also attached a test world of zombies which have lost their Attribute Modifiers for the same reason.

        Attachments

        1. 13w21a Zombie with Attributes Sword.schematic
          1 kB
          WolfieMario
        2. zombieSpawner.schematic
          0.9 kB
          Matthias

          Issue Links

            Activity

              People

              Assignee:
              dinnerbone [Mojang] Nathan Adams
              Reporter:
              wolfiemario WolfieMario
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: