mojira.dev
MC-87761

Drop chances (with new format) does not work.

When I try to summon a mob the mob drop percentage only works if it is greater than 1.0f, otherwise no drops will spawn.

I tested this by spawning 20 mobs with the seven commands below 1-5 gave me nothing but rotten flesh and the last two gave me 20 iron swords.

I have tried this with four other mob templates, this just details the process by which I tested it. I also completely wiped my Minecraft folder (I only left the save files in there) and tested this on three separate maps.

summon Zombie ~ ~1 ~ {CustomName:"Guard",CustomNameVisible:1, HandDropChances:[0.0f,0.0f],ArmorDropChances:[0.0f,0.0f,0.0f,0.0f],HandItems:[{id:"iron_sword",Count:1,ench:[{id:8,lvl:5},{id:16,lvl:10},{id:12,lvl:2}]},{id:shield,Count:1}],ArmorItems:[{id:"iron_boots",Count:1},{id:"chainmail_leggings",Count:1},{id:"iron_chestplate",Count:1,ench:[{id:3,lvl:2}]},{id:"leather_helmet",Count:1,ench:[{id:0,lvl:5}]}]}

summon Zombie ~ ~1 ~ {CustomName:"Guard",CustomNameVisible:1, HandDropChances:[0.25f,0.0f],ArmorDropChances:[0.0f,0.0f,0.0f,0.0f],HandItems:[{id:"iron_sword",Count:1,ench:[{id:8,lvl:5},{id:16,lvl:10},{id:12,lvl:2}]},{id:shield,Count:1}],ArmorItems:[{id:"iron_boots",Count:1},{id:"chainmail_leggings",Count:1},{id:"iron_chestplate",Count:1,ench:[{id:3,lvl:2}]},{id:"leather_helmet",Count:1,ench:[{id:0,lvl:5}]}]}

summon Zombie ~ ~1 ~ {CustomName:"Guard",CustomNameVisible:1, HandDropChances:[0.5f,0.0f],ArmorDropChances:[0.0f,0.0f,0.0f,0.0f],HandItems:[{id:"iron_sword",Count:1,ench:[{id:8,lvl:5},{id:16,lvl:10},{id:12,lvl:2}]},{id:shield,Count:1}],ArmorItems:[{id:"iron_boots",Count:1},{id:"chainmail_leggings",Count:1},{id:"iron_chestplate",Count:1,ench:[{id:3,lvl:2}]},{id:"leather_helmet",Count:1,ench:[{id:0,lvl:5}]}]}

summon Zombie ~ ~1 ~ {CustomName:"Guard",CustomNameVisible:1, HandDropChances:[0.75f,0.0f],ArmorDropChances:[0.0f,0.0f,0.0f,0.0f],HandItems:[{id:"iron_sword",Count:1,ench:[{id:8,lvl:5},{id:16,lvl:10},{id:12,lvl:2}]},{id:shield,Count:1}],ArmorItems:[{id:"iron_boots",Count:1},{id:"chainmail_leggings",Count:1},{id:"iron_chestplate",Count:1,ench:[{id:3,lvl:2}]},{id:"leather_helmet",Count:1,ench:[{id:0,lvl:5}]}]}

summon Zombie ~ ~1 ~ {CustomName:"Guard",CustomNameVisible:1, HandDropChances:[1.0f,0.0f],ArmorDropChances:[0.0f,0.0f,0.0f,0.0f],HandItems:[{id:"iron_sword",Count:1,ench:[{id:8,lvl:5},{id:16,lvl:10},{id:12,lvl:2}]},{id:shield,Count:1}],ArmorItems:[{id:"iron_boots",Count:1},{id:"chainmail_leggings",Count:1},{id:"iron_chestplate",Count:1,ench:[{id:3,lvl:2}]},{id:"leather_helmet",Count:1,ench:[{id:0,lvl:5}]}]}

summon Zombie ~ ~1 ~ {CustomName:"Guard",CustomNameVisible:1, HandDropChances:[1.5f,0.0f],ArmorDropChances:[0.0f,0.0f,0.0f,0.0f],HandItems:[{id:"iron_sword",Count:1,ench:[{id:8,lvl:5},{id:16,lvl:10},{id:12,lvl:2}]},{id:shield,Count:1}],ArmorItems:[{id:"iron_boots",Count:1},{id:"chainmail_leggings",Count:1},{id:"iron_chestplate",Count:1,ench:[{id:3,lvl:2}]},{id:"leather_helmet",Count:1,ench:[{id:0,lvl:5}]}]}

summon Zombie ~ ~1 ~ {CustomName:"Guard",CustomNameVisible:1, HandDropChances:[2.0f,0.0f],ArmorDropChances:[0.0f,0.0f,0.0f,0.0f],HandItems:[{id:"iron_sword",Count:1,ench:[{id:8,lvl:5},{id:16,lvl:10},{id:12,lvl:2}]},{id:shield,Count:1}],ArmorItems:[{id:"iron_boots",Count:1},{id:"chainmail_leggings",Count:1},{id:"iron_chestplate",Count:1,ench:[{id:3,lvl:2}]},{id:"leather_helmet",Count:1,ench:[{id:0,lvl:5}]}]}

EDIT : I fixed the code area. and made a few clarifications

Comments 4

Please structure this report using {code} in front and after the commands and use general examples and not so many specific please

The post has been edited

Cannot confirm for 15w35e nor 15w36d
However keep in mind that a drop chance lower or equal to 1 randomizes the durability, whereas higher drop chances don't

Report should no longer be considered a bug as killing by hand provides accurate drop chances. previously mobs were killed with a targeted /kill command

Jhon Collins

(Unassigned)

Unconfirmed

Minecraft 15w35e

Retrieved