Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /fix:
- trigger:
- if player is holding a pickaxe:
- set {_delay} to difference between {repair.%player%.lastused} and now
- if {_delay} is less than a minute:
- send player title "&cPlease wait.." with subtitle "&7%difference between a minute and {_delay}% to repair again" for 5 seconds
- else:
- send ""
- send "&8&l** &aYou successfully repaired your pickaxe &8&l**"
- send ""
- repair player's tool
- set {repair.%player%.lastused} to now
- stop
- if player is holding a sword:
- set {_delay} to difference between {repair.%player%.lastused} and now
- if {_delay} is less than a minute:
- send player title "&cPlease wait.." with subtitle "&7%difference between a minute and {_delay}% to repair again" for 5 seconds
- else:
- send ""
- send "&8&l** &aYou successfully repaired your sword &8&l**"
- send ""
- repair player's tool
- set {repair.%player%.lastused} to now
- stop
- if player isn't holding a pickaxe:
- send "&8&l* &cYou need to be holding your Sword / Pickaxe to repair it &8&l*"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement