Mojira Archive
MC-49509

Custom loots do not drop when mob is not killed by a player

I am making a tower defense map, and i want the mobs to drop custom loots.
The problem is that they drop only their basic loots when they are not killed directly by the player.

To check this, try :
/summon Sheep ~ ~1 ~ {Equipment:[

{Count:1,id:258}

,{},

{Count:1,id:304}

,{},{}],Attributes:[

{Name:generic.maxHealth,Base:1}

],DropChances:[1.0f,0f,1.0f,0f,0f]}

(all in one line)

If you kill the sheep with a sword, you will get the custom loots. But if you kill it with /kill, a dispenser, a wolf, etc, you will only get the regular loots.

EDIT : Of course, when a mob is not killed by a player, he will drop, assuming the gamerule doMobLoot is set to true. I have tested this in 1.5.2, 1.6.4, 1.7.4 and 14w08a. This bug was already in 1.7.4.

Invalid

Batary

2014-02-22, 05:15 PM

2014-03-13, 11:25 PM

2014-03-13, 11:25 PM

0

2

Unconfirmed

custom, drop, loot

Minecraft 1.7.4 - Minecraft 14w08aMinecraft 1.7.4, Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a

-