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
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:
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