mojira.dev
MC-93486

Loot tables don't work for containers with special slots

The bug

Loot tables do not work for containers which have slots with have special requirements, e.g. only allow fuel. I expected loot tables to generate random loot for ANY storage block.

For blocks whose slots are all the same, see the respective other reports, e.g. MC-143766.

Affected blocks

  • brewing_stand

  • furnace

    • blast_furnace

    • smoker

How to reproduce

  1. Place for example a furnace with a loot table

    /setblock ~ ~ ~ minecraft:furnace{LootTable:"chests/simple_dungeon"} replace
  2. Right click the furnace

Linked issues

Comments 15

That's intended, I think
As all of the above mentioned items only are crafted, and not generated (excluding village furnace, which never contains something, jungle temple which is still hardcoded to spawn x arrows

This site is for bug reports only. For feature suggestions or changes please see: Minecraft Suggestions on Reddit.

But how do you explain minecarts with hoppers. Those dont spawn naturally but those do work. I feel like something doesnt work as it is supposed to be still.

And you may want to use dispensers or droppers in custom maps. So the reason "crafting" is not really a good reason. As above stated. MinecartHopper does work. It should work for all storage.

this still is a feature request, not a bug

5 more comments

I have the same issue on 1.15.1 with furnaces. When using the command

loot replace block <x> <y> <z> container.2 mine <x> <y> <z> mainhand

while holding a pickaxe in the mainhand, the loot from the furnace will not appear in Slot 2. The same happens when using container.1 as the slot, but using container.0 as the slot works as expected.

I find this rather weird, because using

replaceitem block <x> <y> <z> container.2 minecraft:furnace 1

does insert a furnace inside Slot 2.

Confirmed in 1.16.1.

Can confirm in 20w48a.

Can confirm in 21w05b.

This is a feature request.

AgentM

(Unassigned)

Confirmed

Loot tables

blast_furnace, brewing_stand, furnace, loot-table, smoker

Minecraft 15w46a, Minecraft 15w47a, Minecraft 15w47b, Minecraft 15w47c, Minecraft 16w05b, ..., 1.16.2, 1.16.4, 20w46a, 20w48a, 21w05b

Retrieved