Started by
IFCreative
on
Topic category: Help with Minecraft modding (Java Edition)
Why isn't this working
I have the enchantment enchanted on an iron sword and it doesn't give me health.
Topic category: Help with Minecraft modding (Java Edition)
Why isn't this working
I have the enchantment enchanted on an iron sword and it doesn't give me health.
Its because its not checking for the item with the enchantment in Your hand, its checking for the item with the enchantment in the Opposing entities hand. To fix this simply change Event/target Entity to Source Entity and it will work.
Set "Item in main-hand of Event/Target entity" to "Item in main-hand of Source entity". Simple!