There does not seem to be a way to disable illegal levels of enchantments.
The reinforcing chain is a good example of implementation done right. If we dont want the player to be able to obtain illegal levels, we can disable the multiplex chain upgrade, yet leave the regular reinforcing chain. The evil flame is also good as it only allows legal upgrades (which actually seems odd that it doesnt in the context of your mod).
the evil thorn and repulsion gadget on the other hand....
there should either be a config where we can disable illegal level upgrades, or like the reinforcing chain, just have a separate item.
forge 1.18.2
It also only works on diamond items but perhaps that was intentional
In hmag-forge-mc1.20.1-9.0.6, the enchantment upgrade recipe is now fully JSONized, so this issue has been resolved, but backport possibility is very small...
There does not seem to be a way to disable illegal levels of enchantments.
The reinforcing chain is a good example of implementation done right. If we dont want the player to be able to obtain illegal levels, we can disable the multiplex chain upgrade, yet leave the regular reinforcing chain. The evil flame is also good as it only allows legal upgrades (which actually seems odd that it doesnt in the context of your mod).
the evil thorn and repulsion gadget on the other hand....
there should either be a config where we can disable illegal level upgrades, or like the reinforcing chain, just have a separate item.
forge 1.18.2
It also only works on diamond items but perhaps that was intentional