Mojira Archive
MC-143766

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

  1. 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

  2. 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.

Fixed

Skylar Rose

[Mojang] Bartosz Bok

2019-02-06, 11:14 PM

2019-10-23, 02:07 PM

2019-02-13, 01:44 PM

4

3

Confirmed

barrel, loot-table

Minecraft 19w05a, Minecraft 19w06a

Minecraft 19w07a