Loot tables not working 1.18.2 forge

Started by erdnosyt on Thu, 06/09/2022 - 05:24

Topic category: Help with modding (Java Edition)

Last seen on 05:45, 9. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Loot tables not working 1.18.2 forge
Thu, 06/09/2022 - 05:24

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

Last seen on 18:20, 17. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 18:20, 17. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.