Solved How do I check for the item's durability?

  • 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 community!

    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.

MrDuckyRU

Member
Dec 7, 2020
3
0
1
Hello! I'm trying to make a plugin that will notify when your item has less than 10 durability. I tried my best, but I don't get what is wrong in here. I'm new btw.

on item damage:
if {_durability} is less than 10 of player's tool:
send "&l&cYour %tool% has less than 10 of durability!"
 
{_durability} is a variable you would have to set. Found this in an old thread:
Code:
on item damage.
    if durability of event-item < 10:
        send "Your tool has less than 10 of durability!"
Also, I think there is nothing like %tool%, but I'm not sure.
Note: TuSKe needed
 
Status
Not open for further replies.