-
Bug
-
Resolution: Duplicate
-
None
-
1.16.5, 1.17, 1.17.1, 1.19
-
None
-
Confirmed
-
(Unassigned)
The bug
If /setblock or /fill is used on a container that has not had its loot generated yet, it will always drop its contents. The expected behavior would be for the container to only drop its contents if the "destroy" argument is used.
How to reproduce
- Run the command
/setblock ~ ~ ~1 minecraft:chest{LootTable:"minecraft:blocks/dirt"}
- Then run the command
/setblock ~ ~ ~1 air
→ Notice dirt has been dropped by the chest despite the command not being set to "destroy".
- duplicates
-
MC-136917 Containers with a loot table drop their items if replaced with commands or structure blocks
- Open