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

SpinKnight

Supporter +
Supporter
May 24, 2017
30
0
6
code_language.skript:
command /repair [<text>]:
    trigger:
        if arg-1 is not set:
            if {tokens::%UUID of player%} is greater than 9:
                send "test"
                repair tool of player
                remove 9 from {tokens::%UUID of player%}
            else:
                send "test2"
        else:
            make player execute command "repair"

How do you do, so if the item is already FULLY repaired, it doesn't repair the tool or take the tokens from the player?
 
upload_2018-3-4_18-34-57.png
 
Status
Not open for further replies.