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

Natural mob equipment not randomly damaged when swapped with another item

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w17a, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 5, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w10a, Minecraft 18w16a, Minecraft 1.13-pre1, Minecraft 1.13-pre9, Minecraft 18w44a, Minecraft 19w04a, 19w40a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Items, Mob behaviour

      Description

      The bug

      When a mob wearing randomly-generated armor is killed and the armor drops, it is given a random damage value. However, when a mob chooses to swap its spawn armor for a better piece of dropped armor, the original piece is dropped fully repaired instead of getting randomly damaged.

      How to reproduce

      Simply drop a piece of better (e.g. diamond) equipment next to a mob that is both wearing natural equipment and can pick up loot. It will replace its item and drop it fully repaired. If the mob were to be killed instead, the damage value would be randomized.

      Example command (turn mobGriefing on and drop a diamond chestplate at this zombie's feet):

      /summon zombie ~ ~ ~ {ArmorItems:[{},{},{id:leather_chestplate,Count:1b},{}],ArmorDropChances:[0f,0f,0.99f,0f],CanPickUpLoot:1b}
      

      Note that the damage is not caused by damaging the mob. The random damage is applied on death and is not changed over the lifetime of the mob.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tryashtar [Mod] tryashtar
            • Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: