mojira.dev
MC-94871

Odd loot table behaviour

I've been playing around with creating a command block module to add harder mobs to the game. I've changed the loot tables of these mobs using entitydata.
I have attached an image of the command blocks.
/entitydata @e[tag=RHM_Zom] {CustomName:"Zombie King",CustomNameVisible:1,DeathLootTable:"custom:rhm/zombie"}
This command is run in a chain command block, it shows as successfully run but the mob doesn't drop anything when killed. It does sometimes work though, which is odd.

I ran the command again in a separate command block and it worked properly, making the mob drop the different loot.

I can provide a more in depth explanation of the command block module if its needed.

Attachments

Comments 9

Incomplete without providing loot table used.

Updated with Loot tables used, they're in data/loot_tables/custom/rhm

The loot tables are structured correctly and work fine for me. It's likely an issue with your mechanism; it's hard to tell what's going on with the command blocks, though.

Please provide a simple setup in which the issue can be reproduced and observed easily.

I've added a schematic of the command blocks.

The bug seems really inconsistent, it mostly seems to happen when I am away from spawn chunks, where the command blocks are. The other changes to the mob work as intended when the loot table doesn't.

In the future, I recommend leaving instructions on how to use the mechanism. I can get it working after modifying it so I do not know if there were any issues apart from getting it started (which involved me replacing an impulse block with a repeat block).

It works perfectly fine for me. If the issue starts when you leave the spawn chunks, then the command blocks are not fully in the spawn chunks. A world download would have been much more preferable since specific location is the issue.

Sorry, I thought it would work on start up, the one labelled with a sign should have been running, then you just need to power the impulse block and it'll run in a loop. The age of the area effect clouds can be changed in the last chain block before an impulse block.

The module is in 1 chunk and is in spawn chunks. I think it may be a server issue but I'll just keep an eye on the drops from those mobs as I play and try and find a way to get it to happen consistently.

Does the server console show any errors after killing a zombie that does not provide any loot?

I just worked out the issue, the command blocks which give the mobs glowing had an extra command block on the end, setting the loot table to the wrong file. Issue is gone now.

Sion Richards

(Unassigned)

Unconfirmed

Minecraft 15w51b

Retrieved