How do I change enchantment table loot tables

Started by UndertailUniverse on Fri, 06/03/2022 - 17:13

Topic category: Help with modding (Java Edition)

Last seen on 08:04, 18. Jun 2022
Joined May 2019

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I change enchantment table loot tables
Fri, 06/03/2022 - 17:13

How do I change, overwrite, or edit the Enchantment table RNG?

I have made a mod which adds an enchantment that allows for 5 levels of this enchantment. However I only want up to level 2 to appear in the Enchanting loot table.

I've tried to find the .json file in the loot_tables folder for Minecraft but could not find it, I would like to know where Minecraft stores the chances to get specific enchantments and how to change their values. I am using the most recent version of MCreator (2022.1) and are sourcing the 1.18.2 version files in Minecraft. Any help is appreciated!

(Sorry for any spelling or grammar mistakes that make it hard to understand, I'm usually not good at explaining things, also this is my first post on here)