Repair Anvil

  • 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 our Wiki for downloads and any other information about Skript!

fastqxz

Member
Sep 11, 2023
14
0
1
21
how can i make on right click on anvil it will automatic repair your item with skript??
 
Code:
on right click on anvil:
    repair tool of player
can you make it with cost because when i make it with cost it repairs and take the gold but when i right click with tool thats already repaired it also takes gold
 
can you make it with cost because when i make it with cost it repairs and take the gold but when i right click with tool thats already repaired it also takes gold
Code:
on right click on anvil:
    if player has (NUM HERE) of (ITEM HERE):
        tool of player doesn't have max durability
        repair tool of player
        remove (SAME NUM HERE) of (ITEM HERE) from player's inventory
 
  • Like
Reactions: xWires