Topic category: Help with modding (Java Edition)
So, I was trying to create an enchantment called Zeus' Wrath that would go on a sword and strike a lightning on the entity being attacked upon critical hit. I used a Procedure to test if the weapon was a diamond sword and if it had the enchantment, it would deal 10 damage and strike a lightning, but for some reason it doesnt work. Even if the diamond sword has the custom enchantment, it's in no way different from an unenchanted sword. Can someone explain to me why that is and possibly show me a solution? Thanks in andvance.