Loot table stopped working after it was locked

Started by Lord_Of_Crumbs on Mon, 09/05/2022 - 01:54

Topic category: Help with modding (Java Edition)

Last seen on 02:41, 25. Nov 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Loot table stopped working after it was locked
Mon, 09/05/2022 - 01:54

So I had done all the steps to create a structure with a loot table, I did the stuff with the merging of data and it everything was working. After it worked I wanted to add my custom enchant on a book to the loot table and after searching online for how to do so I found that you had to edit the code specifically, which requires locking the loot table. After i locked the loot table and specified the enchant on the book the loot table would no longer generate anything in the structure and I cant figure out how to fix this.

TLDR; When I locked the loot table it wont generate loot in my structure.

Last seen on 07:30, 24. Sep 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is it formatted correctly?
Mon, 09/05/2022 - 02:09

Is it formatted correctly?

Last seen on 02:41, 25. Nov 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I used this quote from…
Mon, 09/05/2022 - 02:58

I used this quote from TheReallyFatChicken to format it idk if its still the right formatting for 1.18, 

it is quite easy to do by making your loot table, then changing the code (the ID would be enchanted_book{StoredEnchantments:[{id:*name_of_mod*:*name_of_enchantment*,lvl:1}]} (delete the *'s in there as well).

For example, with a custom curse from my mod, I would do enchanted_book{StoredEnchantments:[{id:brine:drowning_curse,lvl:1}]}