Batary
- Batary
- batary
- Europe/Stockholm
- Yes
- No
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 :
{Count:1,id:258}
/summon Sheep ~ ~1 ~ {Equipment:[,{},
{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.
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 :
{Count:1,id:258}
/summon Sheep ~ ~1 ~ {Equipment:[,{},
{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 both gamerules doTileDrop and doMobLoot are 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.
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 :
{Count:1,id:258}
/summon Sheep ~ ~1 ~ {Equipment:[,{},
{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
both gamerules doTileDrop anddoMobLootareset 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.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 :
{Count:1,id:258}
/summon Sheep ~ ~1 ~ {Equipment:[,{},
{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.
You have forgotten the "Count" value :
{id:minecraft:diamond,Count:1}/summon Item ~ ~ ~3 {Item:
}
Confirmed. I used this command :
give @p writable_book 1 0 {display:{Name:"The Book"}} .
Thanks a lot !
I didn't know the "DropChances" tag can be set to a higher value than 1 : for me it was linked to a percentage. I still think this is a small bug, but thanks to you that's not really important now.
This topic can be set to resolved.
I got this problem too. Actually, this happened one time in two for me :
The first time I tried, it works. Then, with the exact same process, it didn't.
On the third try it worked, and so on. I've done this almost 20 times with the same result, alterning working and not working...
The dispenser tries to equip the coloured armor but it seems that the game keeps in memory your previously equipped colored armor. So if you only drop your armor, which i did and i think you do, the game will consider you as 'still equipped'. That's where i think the bug is. In any case, you have to clear the player's inventory before dispensing the armor :
or even
Confirmed for 14w20b. But the testfor command works for me.