Advertisement
Immortal01

Untitled

Jul 18th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. Variables:
  2. {PickaxeLevel.%player%} = 1
  3. # This is the starting level for the pickaxe
  4. {PickaxeCounter.%player%} = 0
  5. # This is the starting blocks mined counter
  6. {UpgradePoints.%player%} = 0
  7. # This is the starting amount of points
  8. Options:
  9. UPoint: 1
  10. Effup: 1
  11. Forup: 5
  12. ToolName: &3Rusted Pickaxe &3| &fLevel &3: &b%{PickaxeLevel.%player%}% &fExp &3: &b%{PickaxeCounter.%player%}%&3/
  13. # This is the name for the pickaxe. You can change this however the Level and the Counter should be in the name
  14. BlocksBroken: 100
  15.  
  16. on mine:
  17. if player is holding a pickaxe:
  18. add 1 to {PickaxeCounter.%player%}
  19. set name of tool of player to "{@ToolName}&b{@BlocksBroken}"
  20. if {PickaxeCounter.%player%} is greater than or equal to 100:
  21. add 1 to {PickaxeLevel.%player%}
  22. add {@UPoint} to {UpgradePoints.%player%}
  23. set {PickaxeCounter.%player%} to 0
  24.  
  25. command /upgrade:
  26. trigger:
  27. open chest with 1 rows named "Upgrades" to player
  28. format slot 0 of player with a gray stained glass named "&f" to close
  29. format slot 1 of player with a gray stained glass named "&f" to close
  30. format slot 2 of player with a gray stained glass named "&f" to close
  31. format slot 3 of player with a Firework Star named "&3Efficency" with lore "&b-1 Points" to close then run [make player execute command "/effup"]
  32. format slot 6 of player with a gray stained glass named "&f" to close
  33. format slot 5 of player with a Firework Star named "&3Fortune" with lore "&b-5 Points" to close then run [make player execute command "/forup"]
  34. format slot 7 of player with a gray stained glass named "&f" to close
  35. format slot 8 of player with a gray stained glass named "&f" to close
  36. format slot 4 of player with a gray stained glass named "&f" to close
  37.  
  38. command /effup:
  39. trigger:
  40. if {UpgradePoints.%player%} is greater than or equal to {@Effup}:
  41. send "&aYou upgraded your pickaxe!"
  42. remove 1 from {UpgradePoints.%player%}
  43. evaluate "enchant player's tool with efficiency %level of efficiency of player's tool + 1%"
  44. evaluate "enchant player's tool with fortune %level of fortune of player's tool%"
  45.  
  46. command /forup:
  47. trigger:
  48. if {UpgradePoints.%player%} is greater than or equal to {@Forup}:
  49. send "&aYou upgraded your pickaxe!"
  50. remove 5 from {UpgradePoints.%player%}
  51. evaluate "enchant player's tool with efficiency %level of fortune of player's tool + 1%"
  52. evaluate "enchant player's tool with efficiency %level of efficiency of player's tool%"
  53.  
  54.  
  55. command /points:
  56. trigger:
  57. send "&3You have %{UpgradePoints.%player%}%!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement