On damage of tool or armour

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

PantherBoy

Active Member
Jul 20, 2017
74
0
6
24
How can I do this?
code_language.skript:
On damage of tool:
    if {ata.%player%} is true:
        cancel event
On damage of armour:
    if {ata.%player%} is true:
        cancel event
 
Or when the tool breaks, give the player the same tool (with same enchants)

So , you should use tuske for get durability conditions check , if the durability = 1 , change it with a new tool.
code_language.skript:
on item damage:
    if durability of event-item is more than (max durability of event-item - item damage):
        send "Your %event-item% is almost breaking!"
 
So , you should use tuske for get durability conditions check , if the durability = 1 , change it with a new tool.
code_language.skript:
on item damage:
    if durability of event-item is more than (max durability of event-item - item damage):
        send "Your %event-item% is almost breaking!"
Can't understand this event: On item damage
 
Status
Not open for further replies.