Health steal enchantment

Started by geoffmann on

Topic category: Help with modding (Java Edition)

Last seen on 23:07, 23. Dec 2021
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Health steal enchantment

What am I doing wrong here? The idea is that the weapon with the enchantment will have a chance to reward back half of the damage dealt when you attack, unless the enemy doesn't have that much health in which case it will just give the player the health the mob had before being killed. The problem is that it doesn't always work, sometimes the game will show you as having full health when you should've only been given a little bit (I believe it happens most often when the mob is killed) but when you take damage you lose all of it as if you never gained any health. The latter part happens when it successfully rewards you the amount it's meant to as well, but for some reason it works sometimes and doesn't other times. Does anybody know what could be causing this? I'm at a loss with the procedure layout. Thanks

Last seen on 02:51, 19. Feb 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you post your…
Thu, 12/16/2021 - 03:49

Could you post your procedure please?

Last seen on 23:07, 23. Dec 2021
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i do that? sorry, i…
Tue, 12/21/2021 - 01:05

how do i do that? sorry, i don't know why the picture i provided didn't work