Anyone here familiar with modding/overriding vanilla enchant behaviors by chance?
The Sharpness flat damage bonus (flat +3 for V) seems to be hardcoded for whatever reason, so a Datapack has not worked (in Vanilla too, so it's not a mod causing it).
Unless there's some minecraft:post_attack voodoo that can somehow get not only the base damage of the weapon just used, but also apply that damage to the target, it sounds like I need a mod.
So that brings me to Neoforge modding. This is for a modpack, so I don't mind overriding vanilla enchantments. I work in Java professionally so Java itself I'm very familiar with, I just don't know where exactly Minecraft calculates this flat bonus damage.
And while Neoforge documentation is great for individual components, I'm having a hard time linking Enchantments, Registries etc. docs and knowing what to implement. Like should I make an Enchantment override class and add that to DeferredRegister.create(Registries.ENCHANTMENT, "minecraft"); under e.g. "sharpness" or is a custom enchantment Effect with a datapack more up to standards?