Topic category: Help with modding (Java Edition)
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)