Solved player's tool

  • 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.

baby raptor

New Member
Nov 6, 2021
5
0
1
20
Skript Version: 2.5.3
Minecraft Version: 1.12.2
This won't work.
Why?
 

Attachments

  • sword.txt
    129 bytes · Views: 106
1: try using "if name of held item is "":"

2: you can use code boxes to show code
Ex:
[code ] your code
[/code ](without the spaces in the bracket)
 
  • Like
Reactions: baby raptor
I tried this code.
It worked!
thank you.
Code:
on rightclick holding iron sword:
    if name of event-item contain "Steel sword":
        heal the player by 2 hearts
        send "HP recovered."
 
Last edited:
Status
Not open for further replies.