Healing specific amount of hearts

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

CU_Man

Member
May 5, 2020
2
0
0
26
im very new to skripting but im trying to make a skript for soup pvp that makes it so when a player right clicks mushroom stew the skript immediately heals 4 hearts and deletes the held item. Here is my skript

Code:
on right click:
    event-player's tool's name = "Mushroom Stew"
    heal %player% [by %4% [heart[s]]]
    send "&a&lThe Mushroom Stew magically healed 4 hearts."
    remove item named "Mushroom Stew" from the player

the heal line doesnt work and i would like to replace the line remove item from players inventory with a line that only takes the item from their hand. then after i want to have aline that adds a bowl in the slot where the soup was. please help
 
Code:
on right click:
  if player is holding mushroom stew
  heal player by 10 hearts
#Change 10 by the heal u want
[doublepost=1588662759,1588662414][/doublepost]hope it works
[doublepost=1588662892][/doublepost]and do the remove mushroom stew from player
 
Status
Not open for further replies.