Loot table stopped working after it was locked

Started by Lord_Of_Crumbs on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Loot table stopped working after it was locked

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.

Joined Mar 2022
Points:

User statistics:

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

Is it formatted correctly?

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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}]}