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

Started by Loza on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Jun 2019
Points:
719

User statistics:

  • Modifications: 4
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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
Active 2 years ago
Joined Oct 2016
Points:
854

User statistics:

  • Modifications: 0
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
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}]}"