Advertisement
Bennzzy123

Untitled

Dec 16th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.06 KB | None | 0 0
  1. Variables:
  2. {Level.%player%} = 1
  3. {Exp.%player%} = 0
  4. {Tokens.%player%} = 0
  5. {lucky.%player%} = false
  6. {dura.%player%} = false
  7. {vein.%player%} = false
  8.  
  9. options:
  10. p: &b&lBlockworks &8|&r
  11.  
  12. on mine:
  13. if player is holding a pickaxe:
  14. set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  15. add 1 to {Exp.%player%}
  16. if {Exp.%player%} is greater than or equal to 100:
  17. set {Exp.%player%} to 0
  18. add 1 to {Level.%player%}
  19. message ""
  20. message "{@p} &eYou have Leveled up your Pickaxe!"
  21. message "{@p} &7Vortex Miner for 3 seconds"
  22. message "{@p} &7Received Mystery Crate"
  23. message ""
  24. add 1 to {Tokens.%player%}
  25. set {vein.%player%} to true
  26. wait 3 seconds
  27. set {vein.%player%} to false
  28. play raw sound "entity.firework.blast" at event-location with pitch 1 volume 0.5
  29.  
  30. command /upgradepick:
  31. trigger:
  32. open chest with 5 row named "&bPickaxe Upgrader &9- &bBalance: %{Tokens.%player%}%" to player
  33. wait 2 tick
  34. format slot 0 of player with white glass pane named "&b " to close
  35. format slot 1 of player with white glass pane named "&b " to close
  36. format slot 2 of player with white glass pane named "&4 " to close
  37. format slot 3 of player with white glass pane named "&b " to close
  38. format slot 4 of player with white glass pane named "&b " to close
  39. format slot 5 of player with white glass pane named "&b " to close
  40. format slot 6 of player with white glass pane named "&b " to close
  41. format slot 7 of player with white glass pane named "&4 " to close
  42. format slot 8 of player with white glass pane named "&b " to close
  43. format slot 9 of player with white glass pane named "&b " to close
  44. format slot 10 of player with nether star named "&5Efficiency" with lore "||&6* &eCosts: 3T||&6* &eMax Level: 5||||&6Info:||&7Faster Mining" to close then run [make player execute command "/efficiency123"]
  45. format slot 11 of player with nether star named "&5Unbreaking" with lore "||&6* &eCosts: 2T||&6* &eMax Level: 10||||&6Info:||&7Your pickaxe has more||&7Durability" to close then run [make player execute command "/unbreaking123"]
  46. format slot 12 of player with white glass pane named "&4 " to close
  47. format slot 13 of player with glowing anvil named "&bRepair Pickaxe" with lore "||&6* &eCosts: 5T||||&6Info:||&7Repairs your Pickaxe" to close then run [make player execute command "/repairpick123"]
  48. format slot 14 of player with white glass pane named "&4 " to close
  49. format slot 15 of player with nether star named "&cComing soon" with lore "||&6* &eCosts: 30T||&6* &eMax Level: 1||||&6Info:||&cComing soon" to close
  50. format slot 16 of player with nether star named "&5Durability" with lore "||&6* &eCosts: 10T||&6* &eMax Level: 1||||&6Info:||&7Has a chance to repair||&7Your pickaxe||&7While Mining" to close then run [make player execute command "/dura123"]
  51. format slot 17 of player with white glass pane named "&b " to close
  52. format slot 18 of player with white glass pane named "&b " to close
  53. format slot 19 of player with nether star named "&5Fortune" with lore "||&6* &eCosts: 5T||&6* &eMax Level: 5||||&6Info:||&7Gives more ore On mine||&7Does not increase EXP!||&7On multiple ores||&7(Only the ore you mined)" to close then run [make player execute command "/fortune123"]
  54. format slot 20 of player with white glass pane named "&b " to close
  55. format slot 21 of player with white glass pane named "&b " to close
  56. format slot 22 of player with white glass pane named "&b " to close
  57. format slot 23 of player with white glass pane named "&b " to close
  58. format slot 24 of player with white glass pane named "&b " to close
  59. format slot 25 of player with nether star named "&5Lucky" with lore "||&6* &eCosts: 20T||&6* &eMax Level: 1||||&6Info:||&7Allows you to find||&7Money while mining" to close then run [make player execute command "/lucky123"]
  60. format slot 26 of player with white glass pane named "&b " to close
  61. format slot 27 of player with white glass pane named "&b " to close
  62. format slot 28 of player with white glass pane named "&b " to close
  63. format slot 29 of player with white glass pane named "&b " to close
  64. format slot 30 of player with stone pickaxe named "&5Upgrade &d> &7Stone Pickaxe" with lore "||&6* &eCosts: 15T||||&6Info:||&7Upgrades your wood pickaxe||&7to a stone pickaxe||&4Removes all current||&4Enchantments" to close then run [make player execute command "/stone"]
  65. format slot 31 of player with iron pickaxe named "&5Upgrade &d> &fIron Pickaxe" with lore "||&6* &eCosts: 30T||||&6Info:||&7Upgrades your stone pickaxe||&7to a iron pickaxe||&4Removes all current||&4Enchantments" to close then run [make player execute command "/iron"]
  66. format slot 32 of player with diamond pickaxe named "&5Upgrade &d> &bDiamond Pickaxe" with lore "||&6* &eCosts: 50T||||&6Info:||&7Upgrades your Iron pickaxe||&7to a Diamond pickaxe||&4Removes all current||&4Enchantments" to close then run [make player execute command "/diamond"]
  67. format slot 33 of player with white glass pane named "&b " to close
  68. format slot 34 of player with white glass pane named "&b " to close
  69. format slot 35 of player with white glass pane named "&b " to close
  70. format slot 36 of player with white glass pane named "&b " to close
  71. format slot 37 of player with white glass pane named "&b " to close
  72. format slot 38 of player with white glass pane named "&b " to close
  73. format slot 39 of player with white glass pane named "&b " to close
  74. format slot 40 of player with white glass pane named "&b " to close
  75. format slot 41 of player with white glass pane named "&b " to close
  76. format slot 42 of player with white glass pane named "&b " to close
  77. format slot 43 of player with white glass pane named "&b " to close
  78. format slot 44 of player with white glass pane named "&b " to close
  79.  
  80. on first join:
  81. set slot 4 of player to 1 of glowing wooden pickaxe named "&7&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  82.  
  83. command /test:
  84. trigger:
  85. set slot 4 of player to 1 of glowing wooden pickaxe named "&7&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  86.  
  87. on right click with pickaxe:
  88. make player execute command "/upgradepick"
  89.  
  90. command /onveintest:
  91. permission: test.test
  92. trigger:
  93. set {vein.%player%} to true
  94.  
  95. command /offveintest:
  96. permission: test.test
  97. trigger:
  98. set {vein.%player%} to false
  99.  
  100. command /stone:
  101. trigger:
  102. if player has 1 wooden_pickaxe:
  103. if {Tokens.%player%} is greater than or equal to 15:
  104. remove 1 wooden_pickaxe from player
  105. set slot 4 of player to 1 stone_pickaxe of unbreaking 1 named "&7&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  106. remove 15 from {Tokens.%player%}
  107. else:
  108. message "{@p} &7You dont have enough tokens."
  109. else:
  110. message "{@p} &eYou do not have a wooden pickaxe."
  111.  
  112. on drop of pickaxe:
  113. cancel the event
  114.  
  115. on inventory click:
  116. event-item is a pickaxe:
  117. cancel event
  118.  
  119.  
  120. command /efficiency123:
  121. trigger:
  122. if {Tokens.%player%} is greater than or equal to 3:
  123. if tool is enchanted with efficiency 5:
  124. message "{@p} You have reach the Enchantment Max!"
  125. else:
  126. send ""
  127. send "{@p} &eYou have Enchanted your pickaxe."
  128. send ""
  129. remove 3 from {Tokens.%player%}
  130. evaluate "enchant player's tool with efficiency %level of efficiency of player's tool + 1%"
  131. else:
  132. send "{@p} &eYou dont have enough tokens"
  133.  
  134. on mine:
  135. if lore of player's held item contains "&7Lucky I":
  136. chance of 5%:
  137. make console execute command "eco give %player% 100"
  138. chance of 15%:
  139. make console execute command "eco give %player% 10"
  140. chance of 1%:
  141. make console execute command "eco give %player% 400"
  142.  
  143. on mine:
  144. if lore of player's held item contains "&7Durability I":
  145. chance of 50%:
  146. repair the player's held item by 2
  147.  
  148. on mine of coal ore:
  149. set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  150. add 1 to {Exp.%player%}
  151.  
  152. on mine of iron ore:
  153. set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  154. add 2 to {Exp.%player%}
  155.  
  156. on mine of gold ore:
  157. set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  158. add 2 to {Exp.%player%}
  159.  
  160. on mine of diamond ore:
  161. set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  162. add 3 to {Exp.%player%}
  163.  
  164. on mine of emerald ore:
  165. set name of player's tool to "&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  166. add 3 to {Exp.%player%}
  167.  
  168. command /repairpick123:
  169. trigger:
  170. if {Tokens.%player%} is greater than or equal to 5:
  171. repair the player's held item by 100000
  172. send ""
  173. send "{@p} &eYou have Enchanted your pickaxe."
  174. send ""
  175. remove 5 from {Tokens.%player%}
  176. else:
  177. send "{@p} &eYou dont have enough tokens"
  178.  
  179. command /lucky123:
  180. trigger:
  181. if {Tokens.%player%} is greater than or equal to 20:
  182. if lore of tool does not contain "&7Lucky I":
  183. message "{@p} You have reach the Enchantment Max!"
  184. else:
  185. send ""
  186. send "{@p} &eYou have Enchanted your pickaxe."
  187. send ""
  188. set the 2nd line of the tool's lore to "&7Lucky I"
  189. set {lucky.%player%} to true
  190. remove 20 from {Tokens.%player%}
  191. else:
  192. send "{@p} &eYou dont have enough tokens"
  193.  
  194. command /dura123:
  195. trigger:
  196. if {Tokens.%player%} is greater than or equal to 10:
  197. if lore of tool does not contain "&7Durability I":
  198. message "{@p} You have reach the Enchantment Max!"
  199. else:
  200. send ""
  201. send "{@p} &eYou have Enchanted your pickaxe."
  202. send ""
  203. set the 1st line of the tool's lore to "&7Durability I"
  204. set {dura.%player%} to true
  205. remove 10 from {Tokens.%player%}
  206. else:
  207. send "{@p} &eYou dont have enough tokens"
  208.  
  209.  
  210. command /unbreaking123:
  211. trigger:
  212. if {Tokens.%player%} is greater than or equal to 2:
  213. if tool is enchanted with unbreaking 10:
  214. message "{@p} You have reach the Enchantment Max!"
  215. else:
  216. send ""
  217. send "{@p} &eYou have Enchanted your pickaxe."
  218. send ""
  219. remove 2 from {Tokens.%player%}
  220. evaluate "enchant player's tool with unbreaking %level of unbreaking of player's tool + 1%"
  221. else:
  222. send "{@p} &eYou dont have enough tokens"
  223.  
  224. command /dua123:
  225. trigger:
  226. if {Tokens.%player%} is greater than or equal to 5:
  227. if lore of tool contains "&7Durability I":
  228. message "{@p} You have reach the Enchantment Max!"
  229. else:
  230. send ""
  231. send "{@p} &eYou have Enchanted your pickaxe."
  232. send ""
  233. remove 5 from {Tokens.%player%}
  234. set {dura.%player%} to true
  235. else:
  236. send "{@p} &eYou dont have enough tokens"
  237.  
  238. command /fortune123:
  239. trigger:
  240. if {Tokens.%player%} is greater than or equal to 5:
  241. if tool is enchanted with fortune 5:
  242. message "{@p} You have reach the Enchantment Max!"
  243. else:
  244. send ""
  245. send "{@p} &eYou have Enchanted your pickaxe."
  246. send ""
  247. remove 5 from {Tokens.%player%}
  248. evaluate "enchant player's tool with fortune %level of fortune of player's tool + 1%"
  249. else:
  250. send "{@p} &eYou dont have enough tokens"
  251.  
  252. command /iron:
  253. trigger:
  254. if player has 1 stone_pickaxe:
  255. if {Tokens.%player%} is greater than or equal to 30:
  256. remove 1 stone_pickaxe from player
  257. set slot 4 of player to 1 iron_pickaxe of unbreaking 1 named "&7&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  258. remove 30 from {Tokens.%player%}
  259. else:
  260. message "{@p} &eYou dont have enough tokens."
  261. else:
  262. message "{@p} &eYou do not have a stone pickaxe."
  263.  
  264. command /diamond:
  265. trigger:
  266. if player has 1 iron_pickaxe:
  267. if {Tokens.%player%} is greater than or equal to 50:
  268. remove 1 iron_pickaxe from player
  269. set slot 4 of player to 1 diamond_pickaxe of unbreaking 1 named "&7&bLevel&b: &3%{Level.%player%}% | &bExp&3: &3%{Exp.%player%}%&b/&3100"
  270. remove 50 from {Tokens.%player%}
  271. else:
  272. message "{@p} &eYou dont have enough tokens."
  273. else:
  274. message "{@p} &eYou do not have a iron pickaxe."
  275.  
  276.  
  277. on mine of coal ore:
  278. if {vein.%player%} is true:
  279. loop blocks in radius 2 around event-block:
  280. loop-block is equal to coal ore
  281. set loop-block to air
  282. damage player's tool by 1
  283. if player has space for (1 of coal):
  284. give player (1 of coal)
  285. else:
  286. drop (1 of coal) at (location 0.5 above player)
  287. drop 1 xp at player
  288.  
  289. on mine of iron ore:
  290. if {vein.%player%} is true:
  291. loop blocks in radius 2 around event-block:
  292. loop-block is equal to iron ore
  293. set loop-block to air
  294. damage player's tool by 1
  295. if player has space for (1 of iron ore):
  296. give player (1 of iron ore)
  297. else:
  298. drop (1 of iron ore) at (location 0.5 above player)
  299.  
  300. on mine of gold ore:
  301. if {vein.%player%} is true:
  302. loop blocks in radius 2 around event-block:
  303. loop-block is equal to gold ore
  304. set loop-block to air
  305. damage player's tool by 1
  306. if player has space for (1 of gold ore):
  307. give player (1 of gold ore)
  308. else:
  309. drop (1 of gold ore) at (location 0.5 above player)
  310.  
  311. on mine of lapis lazuli ore:
  312. if {vein.%player%} is true:
  313. loop blocks in radius 2 around event-block:
  314. loop-block is equal to lapis lazuli ore
  315. set loop-block to air
  316. damage player's tool by 1
  317. if player has space for (6 of lapis lazuli):
  318. give player (6 of lapis lazuli)
  319. else:
  320. drop (6 of lapis lazuli) at (location 0.5 above player)
  321. drop 1 xp at player
  322.  
  323. on mine of redstone ore:
  324. if {vein.%player%} is true:
  325. loop blocks in radius 2 around event-block:
  326. loop-block is equal to redstone ore
  327. set loop-block to air
  328. damage player's tool by 1
  329. if player has space for (4 of redstone):
  330. give player (4 of redstone)
  331. else:
  332. drop (4 of redstone) at (location 0.5 above player)
  333. drop 1 xp at player
  334.  
  335. on mine of stone:
  336. if {vein.%player%} is true:
  337. loop blocks in radius 2 around event-block:
  338. loop-block is equal to stone
  339. set loop-block to air
  340. damage player's tool by 1
  341. if player has space for (1 of stone):
  342. give player (1 of stone)
  343. else:
  344. drop (1 of stone) at (location 0.5 above player)
  345. drop 1 xp at player
  346.  
  347. on mine of diamond ore:
  348. if {vein.%player%} is true:
  349. loop blocks in radius 2 around event-block:
  350. loop-block is equal to diamond ore
  351. set loop-block to air
  352. damage player's tool by 1
  353. if player has space for (1 of diamond):
  354. give player (1 of diamond)
  355. else:
  356. drop (1 of diamond) at (location 0.5 above player)
  357. drop 1 xp at player
  358.  
  359. on mine of emerald ore:
  360. if {vein.%player%} is true:
  361. loop blocks in radius 2 around event-block:
  362. loop-block is equal to emerald ore
  363. set loop-block to air
  364. damage player's tool by 1
  365. if player has space for (1 of emerald):
  366. give player (1 of emerald)
  367. else:
  368. drop (1 of emerald) at (location 0.5 above player)
  369. drop 1 xp at player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement