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)

Active 1 year ago
Joined Jun 2024
Points:
95

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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