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 comminuty!

    Now, what are you waiting for? Join the community now!

  1. KingDooms

    Can't set durability on a item?

    So i'm trying to make a forge to be able to repair a pickaxe, but everything works except the durability, the durability doesn't change, giving no errors but the rest of the code works. Any help? command /forgegui: permission: op trigger: open chest with 3 rows named...
  2. M

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

    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!"
  3. F

    Solved Percent of durability remaining

    Any easy way to get the % of durability remaining on an item without listing all total item durabilities? I'm working on a skript to dismantle tools/armor, and I want the amount of items you get in return to be determined by how much durability is left. Example: 40 durability left on a 100...
  4. SoMuchWessel

    Durability not working

    Hey guys, I have a problem with removing durability from items. I have tried multiple things like: add 1 to the data value of held item set held item's durability to (held item's durability - 1) remove 1 from held item's durability But none of those seems to work like i want it. I want that...
  5. SpinKnight

    Repair tool

    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...
  6. Tonus_

    Tool Not Breaking From Loss of Durability

    I'm trying to make a block regeneration script and because I use cancel event to not break the block, I needed to add a way for the tool to take durability from breaking it. However, the tool would go into the negatives and would never break. I tried adding an if statement checking if the tool's...
  7. Spartan9802

    Solved On inventory click: bug and custom max durability

    Hello, I use "on inventory click" to retrieve each placement in a backpack, unfortunately the event "on inventory click" is not called when one remains to squeeze and that one moves the cursor on several slots. I really would not use "on inventory close" ... Is it possible to increase the...