mojira.dev
MC-127291

Zombies drowning always drop armor items instead of using random chance

When a zombie drowns and transforms into a drowned, it always drops all of its random summoning armor. If the zombie were to be killed manually, it would always drop items it had picked up, but would use its random armor drop chances for natural spawn equipment.

Expected behavior would be for the dropping to match the death of the zombie – again, always drop loot that was picked up, randomly drop the rest.

Linked issues

Attachments

Comments 1

Confirmed. I used

/summon zombie ~ ~ ~ {HandItems:[{id:"minecraft:dirt",Count:1b},{id:"minecraft:stone",Count:1b}],HandDropChances:[0.0f,0.0f]}

to test this with hand items as well, and it always drops both.

Another command I used to test this with armor was

/summon zombie ~ ~ ~ {ArmorItems:[{id:"minecraft:golden_boots",Count:1b},{id:"minecraft:golden_leggings",Count:1b},{id:"minecraft:golden_chestplate",Count:1b},{id:"minecraft:golden_helmet",Count:1b}],ArmorDropChances:[0.0f,0.0f,0.0f,0.0f]}

In both cases, it dropped everything.

I hope that makes reproducing easier in the future.

tryashtar

Agnes Larsson

Confirmed

Minecraft 18w11a, Minecraft 18w16a

Minecraft 18w19a

Retrieved