Custom Loot tables with chests - 1.16.5

Started by Cyanin on

Topic category: Help with modding (Java Edition)

Last seen on 19:21, 24. Mar 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Loot tables with chests - 1.16.5

I've been trying to make a custom loot table work with a chest, however, every time I try to use /setblock or /data merge, the chest does not change it's inventory at all and is completely empty.

I've tried many different variations of the command, but none of them have worked.

Is there a way to fix this issue?

Ex:

/setblock ~ ~ ~ minecraft:chest{LootTable:"genericmod/loot_table/chests/abandoned_house"} (gives nothing)

/data merge block ~ ~ ~ {LootTable:"genericmod/loot_table/chests/abandoned_house"} (also does nothing).