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



    • 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, 1.14.4, 19w40a, 19w46b, 20w17a, 1.16.3, 20w49a, 21w03a
    • Fix Version/s: None
    • Confirmation Status:
    • Category:
      Items, Mob behaviour


      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.

      Random Armchair

      To fix, maybe random mob equipment can just be pre-damaged from the beginning? That way, you won't have to update the item every possible way it can drop, and also won't need a special case anymore for 2.0 drop chance to leave damage untouched.




            Unassigned Unassigned
            tryashtar [Mod] tryashtar
            6 Vote for this issue
            3 Start watching this issue