Loot tables not working 1.18.2 forge

Started by erdnosyt on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Loot tables not working 1.18.2 forge

So I’m making a mod

i want a loot table for a chest

i make the loot table

follow the yt tutorials to every detail 

but it doesn’t work

 ether it’s the LootTable or the command 

I have used /data merge block ~ ~-2 ~ {LootTable:”modname:LootTablename”}
and /data merge block ~ ~-2 ~ {LootTable:”LootTablename”}

 

none of them work

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey  the right Command is:  …
Fri, 06/10/2022 - 04:29

Hey  the right Command is: 

 /data merge block ~ ~-2 ~ {LootTable:"chests/end_city_treasure"}

or when the Items from a Mod:

/data merge block ~ ~-2 ~ {LootTable:"DEINMODNAME:chests/end_city_treasure"}

but note that the loot table itself should be in Json format in a suitable folder. I highly recommend this site for a lot of things in Minecraft: https://mcstacker.net/

Greetings Sven

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, I completely forgot,…
Sun, 06/12/2022 - 14:18

Oh, I completely forgot, note that Y -2 says that you place a chest and a block over it and you stand on it and execute the command. And now the chest will be filled with the specified loot table.