Add an enchanted book to a loot table

Started by Batteries Not … on Sat, 08/08/2020 - 04:54

Topic category: Help with modding (Java Edition)

Last seen on 02:13, 12. Sep 2021
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Add an enchanted book to a loot table
Sat, 08/08/2020 - 04:54

Hello, I have implemented an enchantment that is meant to drop from a boss. How do I add the specific book to a loot table?

Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can't do this with the…
Thu, 08/13/2020 - 14:48

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}]}