mojira.dev
MC-138473

Loot table data pack does not function for mob spawners.

When attempting to modify the drops of a mob spawner to allow it to drop an item so long as it is broken with silk touch, it does not work. I even tried simply making it drop an item regardless of how it was broken. and still no drop was spawned. I attempted using the same configuration on another block (in this case glass) and it dropped the spawner as expected. So the only conclusion I could come to is that it was the spawner itself not being responsive to the data pack.

Data pack I used to test spawner drop and replicated spawner drop on glass is included.

Attachments

Comments 3

`spawner.json`: missing comma after line 2. Otherwise works.

Wow, what a derp. Sorry, and thanks for the catch o7

Is it possible to transfer the data (which mob spawns) from the spawner block to the spawner item?

Steven Valenski

(Unassigned)

Unconfirmed

Minecraft 18w43c

Retrieved