How Can I Make A Treasure Enchantments Spawn In Loot Tables?

Started by Loza on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How Can I Make A Treasure Enchantments Spawn In Loot Tables?
Sun, 08/16/2020 - 04:44 (edited)

I made an enchantment that I want to only come from fishing loot and dungeon chests, however when you try to add enchantments to a loot table it doesn't show up because the enchanted book doesn't show up in the list of items. Is there a way I am able to add it to a loot table?

Edited by Loza on Sun, 08/16/2020 - 04:44
Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry to be getting to you…
Wed, 07/06/2022 - 06:13

Sorry to be getting to you so late, but to quote @TheReallyFatChicken:

"You can't do this with the MCreator software. However, 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}]}"