Enchantment that takes more life

Started by I dont speak english on

Topic category: Help with modding (Java Edition)

Last seen on 17:55, 28. Nov 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Enchantment that takes more life

I'm creating an enchantment that will take three times more health from an enemy sector than if the weapon didn't have the enchantment. I already have the whole procedure ready, but when I try it, it removes the same amount of life as if it did not have the enchantment. What I'm looking for is that it be like the enchantment of Bane of Arthrophods or Impaling (I don't know how they are written in English), that is, that it does more damage to certain specific mobs. I already have the procedure but I don't know what is wrong because it does the same damage to those entities even if it has the enchantment. Can someone help me with that? I will leave an image of the procedure and if, for those who ask it, the mobs to which it will do the most damage have their own tag.
Here is the image of the procedure

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah no you did it wrong …
Mon, 11/08/2021 - 15:40

yeah no you did it wrong 

remove all the sword itemstacks and put this

item in main hand of source entity