Oxalist

Untitled

Dec 10th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 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. # C R E A T E D B Y : J A C K | I P A R I S
  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. {BlockBroken.%player%} = 0
  23. Options:
  24. ToolName: &fStarter Pickaxe &8➤ &fBlocks &b%{BlockBroken.%player%}% &8➤ &fLevel &b%{PickaxeLevel.%player%}% &8➤ &fExp &8➤ &b%{PickaxeCounter.%player%}%&3/
  25. # This is the name for the pickaxe. You can change this however the Level and the Counter should be in the name
  26. UPoint: 1
  27. # This is how many points a player get's once a player has levelled a pickaxe up
  28. BlocksBroken: 200
  29. # This is the amount of blocks that need to be broken to a pickaxe has levelled up
  30. Header: &8&m--&7&m--&b&m--&3&m--&b( &f&lPICKAXE UPGRADES &b)&3&m--&b&m--&7&m--&8&m--
  31. Footer: &8&m--&7&m--&b&m--&3&m--&b( &f&lPICKAXE UPGRADES &b)&3&m--&b&m--&7&m--&8&m--
  32. Upgrade: &3(&bCurrent Level&3) &3➤ &f%{PickaxeLevel.%player%}% &3(&bUpgrade Points&3) &3➤ &f%{UpgradePoints.%player%}%
  33. # Header, Footer and upgrade message
  34. EffUP: 1
  35. ForUP: 1
  36. UnbUP: 1
  37. # These are how much the enchantment upgrades costs per points - Can change the amount
  38. UpgradeSuccess: &3(&bYou have enchanted your tool&3)
  39. MissingPoints: &3(&bYou need upgrade points to purchase this enchantment &3)
  40. # These are the messages if an upgrade is success or if a player doesn't have enough points
  41.  
  42.  
  43.  
  44.  
  45.  
  46. on mine of coal ore:
  47. if player is holding a pickaxe:
  48. add 1 to {PickaxeCounter.%player%}
  49. set name of tool of player to "{@ToolName}&b{@BlocksBroken}"
  50. if {PickaxeCounter.%player%} is greater than or equal to 200:
  51. add 1 to {PickaxeLevel.%player%}
  52. add {@UPoint} to {UpgradePoints.%player%}
  53. set {PickaxeCounter.%player%} to 0
  54. launch ball firework colored white and ball firework colored blue at targeted block timed 1
  55.  
  56. command /upgrades:
  57. trigger:
  58. send ""
  59. send " {@Header}"
  60. send " &7&oClick on enchantments to upgrade your tool"
  61. send ""
  62. send " {@Upgrade}"
  63. send ""
  64. send ""
  65. 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")
  66. send ""
  67. send " {@Footer}"
  68.  
  69. command /eff:
  70. trigger:
  71. if {UpgradePoints.%player%} is greater than or equal to {@EffUP}:
  72. send ""
  73. send " {@UpgradeSuccess}"
  74. send ""
  75. remove 1 from {UpgradePoints.%player%}
  76. evaluate "enchant player's tool with efficiency %level of efficiency of player's tool + 1%"
  77. else:
  78. send ""
  79. send " {@MissingPoints}"
  80. send ""
  81.  
  82. command /for:
  83. trigger:
  84. if {UpgradePoints.%player%} is greater than or equal to {@ForUP}:
  85. send ""
  86. send " {@UpgradeSuccess}"
  87. send ""
  88. remove 1 from {UpgradePoints.%player%}
  89. evaluate "enchant player's tool with fortune %level of fortune of player's tool + 1%"
  90. else:
  91. send ""
  92. send " {@MissingPoints}"
  93. send ""
  94.  
  95. command /unb:
  96. trigger:
  97. if {UpgradePoints.%player%} is greater than or equal to {@UnbUP}:
  98. send ""
  99. send " {@UpgradeSuccess}"
  100. send ""
  101. remove 1 from {UpgradePoints.%player%}
  102. evaluate "enchant player's tool with unbreaking %level of unbreaking of player's tool + 1%"
  103. else:
  104. send ""
  105. send " {@MissingPoints}"
  106. send ""
  107. on first join:
  108. make player execute "/kit joinpickaxe"
  109. on drop:
  110. if tool of player is diamond pickaxe
  111. cancel event
  112. on rightclick holding a diamond pickaxe:
  113. make player execute "/upgrades"
  114. on mine of ore:
  115. add 1 to {BlockBroken.%player%}
Advertisement
Add Comment
Please, Sign In to add comment