Advertisement
UnLuckyL

Pickaxe Upgrades (Skript)

May 26th, 2017
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. Options:
  2. Version: 1.1
  3.  
  4.  
  5. #
  6. # W E L C O M E T O
  7. #
  8. # P I C K A X E L E V E L L I N G
  9. #
  10. # E D I T B Y U N L U C K Y L H O P E U E N J O Y
  11. #
  12. # (! Please don't edit the settings below unless you know what you are doing !)
  13.  
  14.  
  15. Variables:
  16. {PickaxeLevel.%player%} = 1
  17. # This is the starting level for the pickaxe
  18. {PickaxeCounter.%player%} = 0
  19. # This is the starting blocks mined counter
  20. {UpgradePoints.%player%} = 0
  21. # This is the starting amount of points
  22. Options:
  23. ToolName: &fSkyblock Pickaxe &e| &fLevel &e: &6%{PickaxeLevel.%player%}% &fExp &e: &6%{PickaxeCounter.%player%}%&e/
  24. # This is the name for the pickaxe. You can change this however the Level and the Counter should be in the name
  25. UPoint: 1
  26. # This is how many points a player get's once a player has levelled a pickaxe up
  27. BlocksBroken: 100
  28. # This is the amount of blocks that need to be broken to a pickaxe has levelled up
  29. Header: &8&m--&7&m--&6&m--&e&m--&6( &f&lPICKAXE UPGRADES &6)&e&m--&6&m--&7&m--&8&m--
  30. Footer: &8&m--&7&m--&6&m--&e&m--&6( &f&lPICKAXE UPGRADES &6)&e&m--&6&m--&7&m--&8&m--
  31. Upgrade: &e(&6Current Level&e) &e» &f%{PickaxeLevel.%player%}% &e(&bUpgrade Points&e) &e» &f%{UpgradePoints.%player%}%
  32. # Header, Footer and upgrade message
  33. EffUP: 1
  34. ForUP: 1
  35. UnbUP: 1
  36. # These are how much the enchantment upgrades costs per points - Can change the amount
  37. UpgradeSuccess: &e(&6You have enchanted your tool&e)
  38. MissingPoints: &e(&6You need upgrade points to purchase this enchantment &e)
  39. # These are the messages if an upgrade is success or if a player doesn't have enough points
  40.  
  41.  
  42.  
  43.  
  44.  
  45. on mine:
  46. if player is holding a pickaxe:
  47. add 1 to {PickaxeCounter.%player%}
  48. set name of tool of player to "{@ToolName}&6{@BlocksBroken}"
  49. if {PickaxeCounter.%player%} is greater than or equal to 100:
  50. add 1 to {PickaxeLevel.%player%}
  51. add {@UPoint} to {UpgradePoints.%player%}
  52. set {PickaxeCounter.%player%} to 0
  53. launch ball firework colored white and ball firework colored blue at targeted block timed 1
  54.  
  55. command /UnLuckyL:
  56. trigger:
  57. send ""
  58. send " {@Header}"
  59. send " &7&oClick on enchantments to upgrade your tool"
  60. send ""
  61. send " {@Upgrade}"
  62. send ""
  63. send ""
  64. json("%player%"," &7&oEfficiency||cmd:/eff||ttp:&3» &b&l{@EffUP} Upgrade Point%newline%&fIncrease your%newline%&f&lEfficiency&fon your tool|| &7&oFortune||cmd:/for||ttp:&3» &b&l{@ForUP} Upgrade Point%newline%&fIncrease your%newline%&f&oFortune &fon your tool|| &7&oUnbreaking||cmd:/unb||ttp:&3» &b&l{@UnbUP} Upgrade Point%newline%&fIncrease your%newline%&f&oUnbreaking &fon your tool")
  65. send ""
  66. send " {@Footer}"
  67.  
  68. command /eff:
  69. trigger:
  70. if {UpgradePoints.%player%} is greater than or equal to {@EffUP}:
  71. send ""
  72. send " {@UpgradeSuccess}"
  73. send ""
  74. remove 1 from {UpgradePoints.%player%}
  75. evaluate "enchant player's tool with efficiency %level of efficiency of player's tool + 1%"
  76. else:
  77. send ""
  78. send " {@MissingPoints}"
  79. send ""
  80.  
  81. command /for:
  82. trigger:
  83. if {UpgradePoints.%player%} is greater than or equal to {@ForUP}:
  84. send ""
  85. send " {@UpgradeSuccess}"
  86. send ""
  87. remove 1 from {UpgradePoints.%player%}
  88. evaluate "enchant player's tool with fortune %level of fortune of player's tool + 1%"
  89. else:
  90. send ""
  91. send " {@MissingPoints}"
  92. send ""
  93.  
  94. command /unb:
  95. trigger:
  96. if {UpgradePoints.%player%} is greater than or equal to {@UnbUP}:
  97. send ""
  98. send " {@UpgradeSuccess}"
  99. send ""
  100. remove 1 from {UpgradePoints.%player%}
  101. evaluate "enchant player's tool with unbreaking %level of unbreaking of player's tool + 1%"
  102. else:
  103. send ""
  104. send " {@MissingPoints}"
  105. send ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement