How do I make the player increase their max health upon killing an enemy

Started by Luchezar on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make the player increase their max health upon killing an enemy

Im making a weapon, that supposed to grand you the power of slained monsters (not passive mobs). Like when you kill a monster, your maximum health increases for a period of time. I think it should work if i play with potion effect but i cant find how to make it work as "upon kill" . This may seem easy for you, but not for me. Would appreciate any help