Adding Enchanted books in loot tables

Started by Ali107 on Thu, 08/11/2022 - 12:12

Topic category: Help with modding (Java Edition)

Last seen on 20:49, 4. Oct 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Adding Enchanted books in loot tables
Thu, 08/11/2022 - 12:12

How do I put enchanted books with enchantments in a loot table?

 

Placing "Enchanted book" items directly will add enchanted books but will not have a random enchantments.

Last seen on 02:59, 1. Oct 2022
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hi, i hope i'm not too late…
Fri, 09/02/2022 - 15:40

Hi, i hope i'm not too late with that. You need to select the normal book instead, and the value for enchanting equals to the value an enchantment table can have with bookshelfs. I mean, level 10 is not going to give you Sharpness X for example, but instead enchantments that you would get using a Table with 10 Enchanting Power. If you like maxed enchants, set this to 30 or more
If you need to place a book with an specific enchant on it, that requires modifying the json file but i saw someone doing it on the forums

Last seen on 20:49, 4. Oct 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Sorry, I already figured it…
Sat, 09/03/2022 - 10:46

Sorry, I already figured it out.