Loot tables cannot be applied to barrels
The bug
When applying loot tables to containers, the contents of barrels cannot be modified.
How to reproduce
- Apply a /data merge command to a barrel to give it a loot table
/data merge block ~ ~-1 ~ {LootTable:"minecraft:chests/buried_treasure"}→
Contents will not be altered - Try using the /setblock command
/setblock ~ ~ ~ minecraft:barrel{LootTable:"minecraft:chests/buried_treasure"}→
The barrel will not have the loot table contents
All commands used worked properly on chests and shulker boxes but not barrels.
Created Issue:
Loot Tables cannot be applied to Barrels
When applying loot tables to containers, the contents of Barrels cannot be modified.
How to replicate:
- Apply a /data merge command to a barrel to give it a loot table (Ex: /data merge block ~ ~-1 ~ {LootTable:"minecraft:chests/buried_treasure" )
- Contents will not be altered.
All commands used worked properly on Chests and Shulker Boxes but not Barrels.
When applying loot tables to containers, the contents of Barrels cannot be modified.
How to replicate:
- Apply a /data merge command to a barrel to give it a loot table (Ex: /data merge block ~ ~-1 ~ {LootTable:"minecraft:chests/buried_treasure" )
- Contents will not be altered.
All commands used worked properly on Chests and Shulker Boxes but not Barrels.
The Bug
When applying loot tables to containers, the contents of Barrels cannot be modified.
How to reproduce
- Apply a /data merge command to a barrel to give it a loot table (Ex: /data merge block ~ ~-1 ~ {LootTable:"minecraft:chests/buried_treasure"} )
→Contents will not be altered
- Try using the setblock command ( /setblock ~ ~ ~ minecraft:barrel{LootTable:"minecraft:chests/buried_treasure"} )
→The barrel will not have the loot table contents
All commands used worked properly on Chests and Shulker Boxes but not Barrels.
duplicates
The Bug
When applying loot tables to containers, the contents of Barrels cannot be modified.
How to reproduce
- Apply a /data merge command to a barrel to give it a loot table
(Ex:/data merge block ~ ~-1 ~ {LootTable:"minecraft:chests/buried_treasure"} )
→Contents will not be altered
- Try using the setblock command
(/setblock ~ ~ ~ minecraft:barrel{LootTable:"minecraft:chests/buried_treasure"} )
→The barrel will not have the loot table contents
All commands used worked properly on Chests and Shulker Boxes but not Barrels.
The Bug
When applying loot tables to containers, the contents of Barrels cannot be modified.
How to reproduce
- Apply a /data merge command to a barrel to give it a loot table
/data merge block ~ ~-1 ~ {LootTable:"minecraft:chests/buried_treasure"}→
Contents will not be altered
- Try using the setblock command
/setblock ~ ~ ~ minecraft:barrel{LootTable:"minecraft:chests/buried_treasure"}→
The barrel will not have the loot table contents
All commands used worked properly on Chests and Shulker Boxes but not Barrels.
relates to
duplicates
Loot Tables cannot be applied toBarrelsLoot Tables cannot be applied to barrels
The
BugWhen applying loot tables to containers, the contents of
Barrels cannot be modified.How to reproduce
Apply a /data mergecommand to a barrel to give it a loot table/data merge block ~ ~-1 ~ {LootTable:"minecraft:chests/buried_treasure"}→
Contents will not be altered
Try using the setblockcommand/setblock ~ ~ ~ minecraft:barrel{LootTable:"minecraft:chests/buried_treasure"}→
The barrel will not have the loot table contents
All commands used worked properly on
Chests andShulkerBoxes but notBarrels.The bug
When applying loot tables to containers, the contents of barrels cannot be modified.
How to reproduce
- Apply a /data merge command to a barrel to give it a loot table
/data merge block ~ ~-1 ~ {LootTable:"minecraft:chests/buried_treasure"}→
Contents will not be altered
- Try using the /setblock command
/setblock ~ ~ ~ minecraft:barrel{LootTable:"minecraft:chests/buried_treasure"}→
The barrel will not have the loot table contents
All commands used worked properly on chests and shulker boxes but not barrels.
LootTables cannot be applied to barrelsLoot tables cannot be applied to barrels
relates to
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
- Place for example a furnace with a loot table
/setblock ~ ~ ~ minecraft:furnace{LootTable:"chests/simple_dungeon"} replace - Right click the furnace
Decorated pots do not have the LootTable and LootTableSeed fields, what /loot ... loot does is evaluate the loot table and put the resulting items in the container (in fact, you even state what inventory slot to replace (container.0)); it does not set the LootTable field, unlike what you're implying.
Relates to (possibly duplicates) MC-93486 and relates to MC-143766.
Confirmed, Barrels don't have the LootTable and LootTableSeed NBT stored at all, meaning they can't be applied.
Same for smokers, blast furnaces (since furnaces can hold loot tables), and brewing stands (they can naturally generate in villages and igloos)
Did you mean "can't"?
I remembered them being able to have loot tabled, but I seem to have mis-remembered this.