Hi, I need to know how to give a player (any amount) of hearts when they right click with a specificly named item in their hands, for example a medkit. /heal would be good, but I dont want it to heal all health, but just (any amount) of hearts and without the healing effect that /heal has like taking away potion effects. It just needs to give me (any amount) of hearts on right click.
Here is my code:
Skript info:
Here is my code:
Code:
command /medkit:
trigger:
give diamond named "&4Medkit" with lore "&cHeal 5 hearts" to the player
message "&fYou have received a &4Medkit&f!"
on right click:
if player is holding an diamond named "&4Medkit" with lore "&cHeal 5 hearts":
broadcast "&4%player% &cused a medkit!"
Skript info: