Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
1,084
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.71 KB | None | 0 0
  1. variables:
  2. {rank.%player%} = "&8[&bA&8]"
  3. {prestige.%player%} = "&8[&90*&8]"
  4. {prestigen.%player%} = 0
  5. {sellamount.%player%} = 0
  6. {multiplier.%player%} = 1
  7. {prestigep.%player%} = 1000000
  8. #--/Other Stuff\--
  9. {cobblestone.%player%} = 0
  10. {stone.%player%} = 0
  11. {coal.%player%} = 0
  12. {iron_ingot.%player%} = 0
  13. {iron_block.%player%} = 0
  14. {gold_ingot.%player%} = 0
  15. {gold_block.%player%} = 0
  16. {diamond.%player%} = 0
  17. {diamond_block.%player%} = 0
  18. {obsidian.%player%} = 0
  19. {emerald_block.%player%} = 0
  20. {bedrock.%player%} = 0
  21. #--/Sell Price\--
  22. {sstone.%player%} = 2
  23. {scoal.%player%} = 10
  24. {siron_ingot.%player%} = 0
  25. {siron_block.%player%} = 0
  26. {sgold_ingot.%player%} = 0
  27. {sgold_block.%player%} = 0
  28. {sdiamond.%player%} = 0
  29. {sdiamond_block.%player%} = 0
  30. {sobsidian.%player%} = 0
  31. {semerald_block.%player%} = 0
  32. {sbedrock.%player%} = 0
  33. #--/Boss Bar\--
  34. {cooldown.%player%} = 300
  35. {coold.%player%} = 300
  36. {abilityt.%player%} = false
  37. #--/Achievements\--
  38. {0.%player%} = 0
  39. {1.%player%} = 0
  40. {2.%player%} = 0
  41. {3.%player%} = 0
  42. {4.%player%} = 0
  43. {5.%player%} = 0
  44. {6.%player%} = 0
  45. {7.%player%} = 0
  46. {8.%player%} = 0
  47. {9.%player%} = 0
  48. {10.%player%} = 0
  49. {11.%player%} = 0
  50. {12.%player%} = 0
  51. {13.%player%} = 0
  52. {14.%player%} = 0
  53. {15.%player%} = 0
  54. {16.%player%} = 0
  55. {17.%player%} = 0
  56.  
  57. options:
  58. cobblestone : 0.5
  59. stone : 2
  60. coal : 10
  61. iron_ingot : 25
  62. iron_block : 250
  63. gold_ingot : 1000
  64. gold_block : 7500
  65. diamond : 20000
  66. diamond_block : 500000
  67. obsidian : 250000
  68. emerald_block : 750000
  69.  
  70. every second:
  71. loop all players:
  72. if {cooldown.%loop-player%} is not 0:
  73. remove 1 from {cooldown.%loop-player%}
  74. display "&3Cooldown: &b%{cooldown.%loop-player%}%" on bossbar with 100 percent by 1 second for loop-player
  75. else:
  76. if {abilityt.%loop-player%} is false:
  77. display "&3Cooldown: &bReady" on bossbar with 100 percent by 1 second for loop-player
  78. else:
  79. set {cooldown.%loop-player%} to {coold.%loop-player%}
  80.  
  81. on join:
  82. set tab header to "&bXPnet &8/ &bOP Prison%nl%&8&m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m %nl%&3Donate at &b/buy%nl%" and footer to "%nl%&3Online: &b%amount of all players% &8/ &b%max player count%%nl%&8&m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m " for player
  83.  
  84. on chat:
  85. cancel event
  86. if player has permission "essentials.chat.color":
  87. broadcast "%{prestige.%player%}% %{rank.%player%}% %player's prefix%%player%&8: &f%colored message%"
  88. else:
  89. broadcast "%{rank.%player%}% %player's prefix%%player%&8: &7%message%"
  90.  
  91. command /achievements:
  92. aliases: /achievments, /av
  93. trigger:
  94. open chest with 3 rows named "&b&lAchievements" to player
  95. format slot 0 of player with red stained glass pane named "&3Break &b1k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 0"]
  96. format slot 1 of player with red stained glass pane named "&3Break &b5k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 1"]
  97. format slot 2 of player with red stained glass pane named "&3Break &b10k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 2"]
  98. format slot 3 of player with red stained glass pane named "&3Break &b25k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 3"]
  99. format slot 4 of player with red stained glass pane named "&3Break &b50k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 4"]
  100. format slot 5 of player with red stained glass pane named "&3Break &b100k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 5"]
  101. format slot 6 of player with red stained glass pane named "&3Break &b200k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 6"]
  102. format slot 7 of player with red stained glass pane named "&3Break &b500k &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 7"]
  103. format slot 8 of player with red stained glass pane named "&3Break &b1m &3blocks" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 8"]
  104. format slot 9 of player with red stained glass pane named "&3Prestige &b1 &3time" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 9"]
  105. format slot 10 of player with red stained glass pane named "&3Prestige &b2 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 10"]
  106. format slot 11 of player with red stained glass pane named "&3Prestige &b5 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 11"]
  107. format slot 12 of player with red stained glass pane named "&3Prestige &b10 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 12"]
  108. format slot 13 of player with red stained glass pane named "&3Prestige &b20 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 13"]
  109. format slot 14 of player with red stained glass pane named "&3Prestige &b40 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 14"]
  110. format slot 15 of player with red stained glass pane named "&3Prestige &b80 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 15"]
  111. format slot 16 of player with red stained glass pane named "&3Prestige &b100 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 16"]
  112. format slot 17 of player with red stained glass pane named "&3Prestige &b150 &3times" with lore "&7Reward: " and "&cNot Completed" to run [make console execute command "ach %player% 17"]
  113. if {0.%player%} is "1":
  114. format slot 0 of player with orange stained glass pane named "&3Break &b1k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 0"]
  115. if {1.%player%} is "1":
  116. format slot 1 of player with orange stained glass pane named "&3Break &b5k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 1"]
  117. if {2.%player%} is "1":
  118. format slot 2 of player with orange stained glass pane named "&3Break &b10k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 2"]
  119. if {3.%player%} is "1":
  120. format slot 3 of player with orange stained glass pane named "&3Break &b25k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 3"]
  121. if {4.%player%} is "1":
  122. format slot 4 of player with orange stained glass pane named "&3Break &b50k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 4"]
  123. if {5.%player%} is "1":
  124. format slot 5 of player with orange stained glass pane named "&3Break &b100k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 5"]
  125. if {6.%player%} is "1":
  126. format slot 6 of player with orange stained glass pane named "&3Break &b200k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 6"]
  127. if {7.%player%} is "1":
  128. format slot 7 of player with orange stained glass pane named "&3Break &b500k &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 7"]
  129. if {8.%player%} is "1":
  130. format slot 8 of player with orange stained glass pane named "&3Break &b1m &3blocks" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 8"]
  131. if {9.%player%} is "1":
  132. format slot 9 of player with orange stained glass pane named "&3Prestige &b1 &3time" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 9"]
  133. if {10.%player%} is "1":
  134. format slot 10 of player with orange stained glass pane named "&3Prestige &b2 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 10"]
  135. if {11.%player%} is "1":
  136. format slot 11 of player with orange stained glass pane named "&3Prestige &b5 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 11"]
  137. if {12.%player%} is "1":
  138. format slot 12 of player with orange stained glass pane named "&3Prestige &b10 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 12"]
  139. if {13.%player%} is "1":
  140. format slot 13 of player with orange stained glass pane named "&3Prestige &b20 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 13"]
  141. if {14.%player%} is "1":
  142. format slot 14 of player with orange stained glass pane named "&3Prestige &b40 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 14"]
  143. if {15.%player%} is "1":
  144. format slot 15 of player with orange stained glass pane named "&3Prestige &b80 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 15"]
  145. if {16.%player%} is "1":
  146. format slot 16 of player with orange stained glass pane named "&3Prestige &b100 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 16"]
  147. if {17.%player%} is "1":
  148. format slot 17 of player with orange stained glass pane named "&3Prestige &b150 &3times" with lore "&7Reward: " and "&3Ready" to run [make console execute command "ach %player% 17"]
  149. if {0.%player%} is "2":
  150. format slot 0 of player with green stained glass pane named "&3Break &b1k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 0"]
  151. if {1.%player%} is "2":
  152. format slot 1 of player with green stained glass pane named "&3Break &b5k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 1"]
  153. if {2.%player%} is "2":
  154. format slot 2 of player with green stained glass pane named "&3Break &b10k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 2"]
  155. if {3.%player%} is "2":
  156. format slot 3 of player with green stained glass pane named "&3Break &b25k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 3"]
  157. if {4.%player%} is "2":
  158. format slot 4 of player with green stained glass pane named "&3Break &b50k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 4"]
  159. if {5.%player%} is "2":
  160. format slot 5 of player with green stained glass pane named "&3Break &b100k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 5"]
  161. if {6.%player%} is "2":
  162. format slot 6 of player with green stained glass pane named "&3Break &b200k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 6"]
  163. if {7.%player%} is "2":
  164. format slot 7 of player with green stained glass pane named "&3Break &b500k &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 7"]
  165. if {8.%player%} is "2":
  166. format slot 8 of player with green stained glass pane named "&3Break &b1m &3blocks" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 8"]
  167. if {9.%player%} is "2":
  168. format slot 9 of player with green stained glass pane named "&3Prestige &b1 &3time" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 9"]
  169. if {10.%player%} is "2":
  170. format slot 10 of player with green stained glass pane named "&3Prestige &b2 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 10"]
  171. if {11.%player%} is "2":
  172. format slot 11 of player with green stained glass pane named "&3Prestige &b5 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 11"]
  173. if {12.%player%} is "2":
  174. format slot 12 of player with green stained glass pane named "&3Prestige &b10 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 12"]
  175. if {13.%player%} is "2":
  176. format slot 13 of player with green stained glass pane named "&3Prestige &b20 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 13"]
  177. if {14.%player%} is "2":
  178. format slot 14 of player with green stained glass pane named "&3Prestige &b40 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 14"]
  179. if {15.%player%} is "2":
  180. format slot 15 of player with green stained glass pane named "&3Prestige &b80 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 15"]
  181. if {16.%player%} is "2":
  182. format slot 16 of player with green stained glass pane named "&3Prestige &b100 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 16"]
  183. if {17.%player%} is "2":
  184. format slot 17 of player with green stained glass pane named "&3Prestige &b150 &3times" with lore "&7Reward: " and "&bCompleted" to run [make console execute command "ach %player% 17"]
  185.  
  186. command /ach <player> <text>:
  187. permission: *
  188. trigger:
  189. if arg-2 is "0":
  190. if {blocks.%arg-1%} is higher than or equal to 1000:
  191. set {0.%arg-1%} to 1
  192. #a
  193. if arg-2 is "1":
  194. if {blocks.%arg-1%} is higher than or equal to 5000:
  195. set {1.%arg-1%} to 1
  196. #a
  197. if arg-2 is "2":
  198. if {blocks.%arg-1%} is higher than or equal to 10000:
  199. set {2.%arg-1%} to 1
  200. #a
  201. if arg-2 is "3":
  202. if {blocks.%arg-1%} is higher than or equal to 25000:
  203. set {3.%arg-1%} to 1
  204. #a
  205. if arg-2 is "4":
  206. if {blocks.%arg-1%} is higher than or equal to 50000:
  207. set {4.%arg-1%} to 1
  208. #a
  209. if arg-2 is "5":
  210. if {blocks.%arg-1%} is higher than or equal to 100000:
  211. set {5.%arg-1%} to 1
  212. #a
  213. if arg-2 is "6":
  214. if {blocks.%arg-1%} is higher than or equal to 200000:
  215. set {6.%arg-1%} to 1
  216. #a
  217. if arg-2 is "7":
  218. if {blocks.%arg-1%} is higher than or equal to 500000:
  219. set {7.%arg-1%} to 1
  220. #a
  221. if arg-2 is "8":
  222. if {blocks.%arg-1%} is higher than or equal to 1000000:
  223. set {8.%arg-1%} to 1
  224. #a
  225. if arg-2 is "9":
  226. if {prestigen.%arg-1%} is higher than or equal to 1:
  227. set {9.%arg-1%} to 1
  228. #a
  229. if arg-2 is "10":
  230. if {prestigen.%arg-1%} is higher than or equal to 2:
  231. set {10.%arg-1%} to 1
  232. #a
  233. if arg-2 is "11":
  234. if {prestigen.%arg-1%} is higher than or equal to 5:
  235. set {11.%arg-1%} to 1
  236. #a
  237. if arg-2 is "12":
  238. if {prestigen.%arg-1%} is higher than or equal to 10:
  239. set {12.%arg-1%} to 1
  240. #a
  241. if arg-2 is "13":
  242. if {prestigen.%arg-1%} is higher than or equal to 20:
  243. set {13.%arg-1%} to 1
  244. #a
  245. if arg-2 is "14":
  246. if {prestigen.%arg-1%} is higher than or equal to 40:
  247. set {14.%arg-1%} to 1
  248. #a
  249. if arg-2 is "15":
  250. if {prestigen.%arg-1%} is higher than or equal to 80:
  251. set {15.%arg-1%} to 1
  252. #a
  253. if arg-2 is "16":
  254. if {prestigen.%arg-1%} is higher than or equal to 100:
  255. set {16.%arg-1%} to 1
  256. #a
  257. if arg-2 is "17":
  258. if {prestigen.%arg-1%} is higher than or equal to 150:
  259. set {17.%arg-1%} to 1
  260. #a
  261.  
  262. command /bkcreate:
  263. permission: *
  264. trigger:
  265. give player 1 of chest named "&6&lBackpack" with lore "&71000/%{bk::1}%" and "&3Holds mined blocks!"
  266.  
  267. command /bkreset:
  268. permission: *
  269. trigger:
  270. set {bk::1} to 0
  271. set lore of player's held item to "&71000/%{bk::1}%" and "&3Holds mined blocks!"
  272.  
  273. on rightclick with chest:
  274. if name of player's held item is "&6&lBackpack":
  275. send "%{bk::1}%" to player
  276.  
  277. on break:
  278. if event-block is stone:
  279. loop all items in player's inventory:
  280. set {_temp} to {bk::1}
  281. if loop-item's lore contains "&71000/%{_temp}%":
  282. add 1 to {bk::1}
  283. set line 1 of lore of loop-item to "&71000/%{bk::1}%"
  284.  
  285. command /rankup:
  286. trigger:
  287. if {rank.%player%} is "&8[&bA&8]":
  288. if player's balance is higher than or equal to 40000:
  289. remove 40000 from player's balance
  290. set {rank.%player%} to "&8[&bB&8]"
  291. set {sstone.%player%} to 5
  292. else:
  293. send "&b&lXPnet &8» &3You dont have &b40k&3!"
  294. if {rank.%player%} is "&8[&bB&8]":
  295. if player's balance is higher than or equal to 100000:
  296. remove 100000 from player's balance
  297. set {rank.%player%} to "&8[&bC&8]"
  298. else:
  299. send "&b&lXPnet &8» &3You dont have &b100k&3!"
  300. if {rank.%player%} is "&8[&bC&8]":
  301. if player's balance is higher than or equal to 250000:
  302. remove 250000 from player's balance
  303. set {rank.%player%} to "&8[&bD&8]"
  304. else:
  305. send "&b&lXPnet &8» &3You dont have &b250k&3!"
  306. if {rank.%player%} is "&8[&bD&8]":
  307. if player's balance is higher than or equal to 750000:
  308. remove 750000 from player's balance
  309. set {rank.%player%} to "&8[&bE&8]"
  310. else:
  311. send "&b&lXPnet &8» &3You dont have &b750k&3!"
  312. if {rank.%player%} is "&8[&bE&8]":
  313. if player's balance is higher than or equal to 1250000:
  314. remove 1250000 from player's balance
  315. set {rank.%player%} to "&8[&bF&8]"
  316. else:
  317. send "&b&lXPnet &8» &3You dont have &b1.25M&3!"
  318. if {rank.%player%} is "&8[&bF&8]":
  319. if player's balance is higher than or equal to 2000000:
  320. remove 2000000 from player's balance
  321. set {rank.%player%} to "&8[&bG&8]"
  322. else:
  323. send "&b&lXPnet &8» &3You dont have &b2M&3!"
  324. if {rank.%player%} is "&8[&bG&8]":
  325. if player's balance is higher than or equal to 5000000:
  326. remove 5000000 from player's balance
  327. set {rank.%player%} to "&8[&bH&8]"
  328. else:
  329. send "&b&lXPnet &8» &3You dont have &b5M&3!"
  330. if {rank.%player%} is "&8[&bH&8]":
  331. if player's balance is higher than or equal to 10000000:
  332. remove 5000000 from player's balance
  333. set {rank.%player%} to "&8[&bI&8]"
  334. else:
  335. send "&b&lXPnet &8» &3You dont have &b10M&3!"
  336. if {rank.%player%} is "&8[&bI&8]":
  337. if player's balance is higher than or equal to 50000000:
  338. remove 5000000 from player's balance
  339. set {rank.%player%} to "&8[&bJ&8]"
  340. else:
  341. send "&b&lXPnet &8» &3You dont have &b50M&3!"
  342. if {rank.%player%} is "&8[&bJ&8]":
  343. if player's balance is higher than or equal to 100000000:
  344. remove 5000000 from player's balance
  345. set {rank.%player%} to "&8[&bK&8]"
  346. else:
  347. send "&b&lXPnet &8» &3You dont have &b100M&3!"
  348. if {rank.%player%} is "&8[&bK&8]":
  349. if player's balance is higher than or equal to 500000000:
  350. remove 5000000 from player's balance
  351. set {rank.%player%} to "&8[&bL&8]"
  352. else:
  353. send "&b&lXPnet &8» &3You dont have &b500M&3!"
  354. if {rank.%player%} is "&8[&bL&8]":
  355. if player's balance is higher than or equal to 750000000:
  356. remove 5000000 from player's balance
  357. set {rank.%player%} to "&8[&bM&8]"
  358. else:
  359. send "&b&lXPnet &8» &3You dont have &b750M&3!"
  360. if {rank.%player%} is "&8[&bM&8]":
  361. if player's balance is higher than or equal to 1000000000:
  362. remove 5000000 from player's balance
  363. set {rank.%player%} to "&8[&bN&8]"
  364. else:
  365. send "&b&lXPnet &8» &3You dont have &b1B&3!"
  366. if {rank.%player%} is "&8[&bN&8]":
  367. if player's balance is higher than or equal to 5000000000:
  368. remove 5000000 from player's balance
  369. set {rank.%player%} to "&8[&bO&8]"
  370. else:
  371. send "&b&lXPnet &8» &3You dont have &b5B&3!"
  372. if {rank.%player%} is "&8[&bO&8]":
  373. if player's balance is higher than or equal to 7500000000:
  374. remove 5000000 from player's balance
  375. set {rank.%player%} to "&8[&bP&8]"
  376. else:
  377. send "&b&lXPnet &8» &3You dont have &b7.5B&3!"
  378. if {rank.%player%} is "&8[&bP&8]":
  379. if player's balance is higher than or equal to 10000000000:
  380. remove 5000000 from player's balance
  381. set {rank.%player%} to "&8[&bQ&8]"
  382. else:
  383. send "&b&lXPnet &8» &3You dont have &b10B&3!"
  384. if {rank.%player%} is "&8[&bQ&8]":
  385. if player's balance is higher than or equal to 25000000000:
  386. remove 5000000 from player's balance
  387. set {rank.%player%} to "&8[&bR&8]"
  388. else:
  389. send "&b&lXPnet &8» &3You dont have &b25B&3!"
  390. if {rank.%player%} is "&8[&bR&8]":
  391. if player's balance is higher than or equal to 50000000000:
  392. remove 5000000 from player's balance
  393. set {rank.%player%} to "&8[&bS&8]"
  394. else:
  395. send "&b&lXPnet &8» &3You dont have &b50B&3!"
  396. if {rank.%player%} is "&8[&bS&8]":
  397. if player's balance is higher than or equal to 75000000000:
  398. remove 5000000 from player's balance
  399. set {rank.%player%} to "&8[&bT&8]"
  400. else:
  401. send "&b&lXPnet &8» &3You dont have &b75B&3!"
  402. if {rank.%player%} is "&8[&bT&8]":
  403. if player's balance is higher than or equal to 100000000000:
  404. remove 5000000 from player's balance
  405. set {rank.%player%} to "&8[&bU&8]"
  406. else:
  407. send "&b&lXPnet &8» &3You dont have &b100B&3!"
  408. if {rank.%player%} is "&8[&bU&8]":
  409. if player's balance is higher than or equal to 150000000000:
  410. remove 5000000 from player's balance
  411. set {rank.%player%} to "&8[&bV&8]"
  412. else:
  413. send "&b&lXPnet &8» &3You dont have &b150B&3!"
  414. if {rank.%player%} is "&8[&bV&8]":
  415. if player's balance is higher than or equal to 175000000000:
  416. remove 5000000 from player's balance
  417. set {rank.%player%} to "&8[&bW&8]"
  418. else:
  419. send "&b&lXPnet &8» &3You dont have &b175B&3!"
  420. if {rank.%player%} is "&8[&bW&8]":
  421. if player's balance is higher than or equal to 250000000000:
  422. remove 5000000 from player's balance
  423. set {rank.%player%} to "&8[&bX&8]"
  424. else:
  425. send "&b&lXPnet &8» &3You dont have &b250B&3!"
  426. if {rank.%player%} is "&8[&bX&8]":
  427. if player's balance is higher than or equal to 500000000000:
  428. remove 5000000 from player's balance
  429. set {rank.%player%} to "&8[&bY&8]"
  430. else:
  431. send "&b&lXPnet &8» &3You dont have &b500B&3!"
  432. if {rank.%player%} is "&8[&bY&8]":
  433. if player's balance is higher than or equal to 5000000:
  434. remove 5000000 from player's balance
  435. set {rank.%player%} to "&8[&bZ&8]"
  436. else:
  437. send "&b&lXPnet &8» &3You dont have &b500B&3!"
  438. if {rank.%player%} is "&8[&bZ&8]":
  439. send "&b&lXPnet &8» &3You already have the top rank, &b/prestige&3!" to player
  440.  
  441. command /rebirth:
  442. trigger:
  443. send "not ready" to player
  444.  
  445. command /prestige:
  446. trigger:
  447. if {rank.%player%} is "&8[&bZ&8]":
  448. if balance of player is higher than or equal to {prestigep.%player%}:
  449. open chest with 1 rows named "&aConfirm" to player
  450. set {_rand} to random integer between 0 and 8
  451. wait 1 tick
  452. format slot 0 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  453. format slot 1 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  454. format slot 2 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  455. format slot 3 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  456. format slot 4 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  457. format slot 5 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  458. format slot 6 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  459. format slot 7 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  460. format slot 8 of player with red stained glass pane named "&0*" with lore "&8Wrong" to close
  461. wait 1 tick
  462. format slot {_rand} of player with green stained glass pane named "&a&lConfirm" with lore "&8Right" to close then run [prestige(player)]
  463. else:
  464. send "&b&lXPnet &8» &3You are not ready for a prestige!"
  465.  
  466. on rightclick:
  467. if name of player's held item is "&bPickaxe &8[&b%{blocks.%player%}%&8]":
  468. wait a tick
  469. open chest with 1 row named "&b&lU-Tokens" to player
  470. wait a tick
  471. format slot 1 of player with diamond pickaxe named "&bPickaxe" with lore "&7Pickaxe upgrades" to run [make player execute command "/pickaxe"]
  472. format slot 3 of player with chest named "&bBackpacks" with lore "&7Backpack shop" to run [make player execute command "/backpacks"]
  473. format slot 5 of player with string named "&bItems" with lore "&7Shop for many items" to run [make player execute command "/items"]
  474. format slot 7 of player with skull of player named "&bPlayer" with lore "&7Player upgrades" to run [make player execute command "/player"]
  475.  
  476. command /upgrade:
  477. trigger:
  478. if name of player's held item is "&bPickaxe &8[&b%{blocks.%player%}%&8]":
  479. wait a tick
  480. open chest with 1 row named "&b&lU-Tokens" to player
  481. wait a tick
  482. format slot 1 of player with diamond pickaxe named "&bPickaxe" with lore "&7Pickaxe upgrades" to run [make player execute command "/pickaxe"]
  483. format slot 3 of player with chest named "&bBackpacks" with lore "&7Backpack shop" to run [make player execute command "/backpacks"]
  484. format slot 5 of player with string named "&bItems" with lore "&7Shop for many items" to run [make player execute command "/items"]
  485. format slot 7 of player with skull of player named "&bPlayer" with lore "&7Player upgrades" to run [make player execute command "/player"]
  486.  
  487. command /player:
  488. trigger:
  489. wait a tick
  490. open chest with 2 rows named "&bPlayer" to player
  491. wait a tick
  492. format slot 17 of player with arrow named "&7Back" to run [make player execute command "/upgrade"]
  493.  
  494. command /items:
  495. trigger:
  496. wait a tick
  497. open chest with 2 rows named "&bItems" to player
  498. wait a tick
  499. format slot 17 of player with arrow named "&7Back" to run [make player execute command "/upgrade"]
  500.  
  501. command /backpacks:
  502. trigger:
  503. wait a tick
  504. open chest with 2 rows named "&bBackpacks" to player
  505. wait a tick
  506. format slot 17 of player with arrow named "&7Back" to run [make player execute command "/upgrade"]
  507.  
  508. command /pickaxe:
  509. trigger:
  510. wait a tick
  511. open chest with 2 rows named "&bPickaxe" to player
  512. wait a tick
  513. format slot 17 of player with arrow named "&7Back" to run [make player execute command "/upgrade"]
  514. format slot 0 of player with tnt named "" with lore "" and "" to run [make console execute command "shopbuy %player% explosive"]
  515.  
  516. command /shopbuy <player> <text>:
  517. permission: *
  518. trigger:
  519. if arg-2 is "explosive":
  520. if {tokens.%arg-1%} is higher than or equal to 10000:
  521. remove 10000 from {tokens.%arg-1%}
  522. add 1 to {explosive.%arg-1%}
  523. set line 1 of lore of arg-1's tool to "&7Explosive %{explosive.%arg-1%}%"
  524.  
  525. command /tokenme <number>:
  526. permission: *
  527. trigger:
  528. add arg-1 to {tokens.%player%}
  529.  
  530. on break:
  531. chance of 5%:
  532. set {_tokensluck} to random integer between 1 and 20
  533. add {_tokensluck} to {tokens.%player%}
  534. send "&7&m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m " to player
  535. send "&9You have recieved &b%{_tokensluck}% &9U-Tokens" to player
  536. send "&7&m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m &m " to player
  537. if player can hold command block:
  538. set {_fortune} to level of fortune of player's tool
  539. give player {_fortune} of event-block
  540. else:
  541. send player title "&4Your inventory is full" with subtitle "&cNo space for item" for 2 seconds
  542. if name of player's held item is "&bPickaxe &8[&b%{blocks.%player%}%&8]":
  543. add 1 to {blocks.%player%}
  544. set name of player's held item to "&bPickaxe &8[&b%{blocks.%player%}%&8]"
  545. chance of 25%:
  546. loop all blocks in radius 3 around event-block:
  547. if loop-block is stone:
  548. add 1 to {blocks.%player%}
  549. set name of player's held item to "&bPickaxe &8[&b%{blocks.%player%}%&8]"
  550. chance of 50%:
  551. set loop-block to air
  552. set {_fortune} to level of fortune of player's tool
  553. give player {_fortune} of event-block
  554. create a fake explosion at event-block
  555.  
  556. command /resetblock <player>:
  557. permission: *
  558. trigger:
  559. set {blocks.%arg-1%} to 0
  560. set name of player's held item to "&bPickaxe &8[&b0&8]"
  561.  
  562. command /pickadd [<player>]:
  563. permission: pick
  564. trigger:
  565. if arg-1 is set:
  566. give arg-1 unbreakable diamond pickaxe of fortune 5 named "&bPickaxe &8[&b%{blocks.%arg-1%}%&8]"
  567. else:
  568. give player unbreakable diamond pickaxe of fortune 5 named "&bPickaxe &8[&b%{blocks.%player%}%&8]"
  569.  
  570. on first join:
  571. give player unbreakable diamond pickaxe of fortune 5 named "&bPickaxe &8[&b%{blocks.%player%}%&8]"
  572.  
  573. function prestige(p: player):
  574. set balance of {_p} to 0
  575. if {prestige.%{_p}%} is "&8[&9%{prestigen.%{_p}%}%*&8]":
  576. add 1 to {prestigen.%{_p}%}
  577. set {prestige.%{_p}%} to "&8[&9%{prestigen.%{_p}%}%*&8]"
  578. set {sstone.%{_p}%} to 2
  579. set {scoal.%{_p}%} to 10
  580. set {siron_ingot.%{_p}%} to 0
  581. set {siron_block.%{_p}%} to 0
  582. set {sgold_ingot.%{_p}%} to 0
  583. set {sgold_block.%{_p}%} to 0
  584. set {sdiamond.%{_p}%} to 0
  585. set {sdiamond_block.%{_p}%} to 0
  586. set {sobsidian.%{_p}%} to 0
  587. set {semerald_block.%{_p}%} to 0
  588. set {sbedrock.%{_p}%} to 0
  589. set {rank.%{_p}%} to "&8[&bA&8]"
  590.  
  591. function format(n: number) :: text:
  592. set {_data} to "QT,18|Q,15|T,12|B,9|M,6|k,3"
  593. loop split {_data} at "|":
  594. set {_s::*} to split loop-value at ","
  595. {_n} >= 10 ^ {_s::2} parsed as number
  596. return "%{_n} / 10 ^ {_s::2} parsed as number%%{_s::1}%"
  597. return "%{_n}%"
  598.  
  599. command /setrank <player> <text>:
  600. permission: *
  601. trigger:
  602. if arg-2 is "a":
  603. set {rank.%arg-1%} to "&8[&bA&8]"
  604.  
  605. command /sellall:
  606. aliases: /sell all
  607. trigger:
  608. loop all items in player's inventory:
  609. if loop-item is stone:
  610. set {stone.%player%} to amount of stone in player's inventory
  611. add ({sstone.%player%} * {stone.%player%} * {multiplier.%player%}) to {sellamount.%player%}
  612. remove {stone.%player%} of stone from player's inventory
  613. if loop-item is coal:
  614. set {coal.%player%} to amount of coal in player's inventory
  615. add ({scoal.%player%} * {coal.%player%} * {multiplier.%player%}) to {sellamount.%player%}
  616. remove {coal.%player%} of coal from player's inventory
  617. if loop-item is iron ingot:
  618. set {iron_ingot.%player%} to amount of iron ingot in player's inventory
  619. add ({siron_ingot.%player%} * {iron_ingot.%player%} * {multiplier.%player%}) to {sellamount.%player%}
  620. remove {iron_ingot.%player%} of iron ingot from player's inventory
  621. if loop-item is iron block:
  622. set {iron_block.%player%} to amount of iron block in player's inventory
  623. add ({siron_block.%player%} * {iron_block.%player%} * {multiplier.%player%}) to {sellamount.%player%}
  624. remove {iron_block.%player%} of iron block from player's inventory
  625. if loop-item is gold ingot:
  626. set {gold_ingot.%player%} to amount of gold ingot in player's inventory
  627. add ({sgold_ingot.%player%} * {gold_ingot.%player%} * {multiplier.%player%}) to {sellamount.%player%}
  628. remove {gold_ingot.%player%} of gold ingot from player's inventory
  629. if loop-item is gold block:
  630. set {gold_block.%player%} to amount of gold block in player's inventory
  631. add ({sgold_block.%player%} * {gold_block.%player%} * {multiplier.%player%}) to {sellamount.%player%}
  632. remove {gold_block.%player%} of gold block from player's inventory
  633. if loop-item is diamond:
  634. set {diamond.%player%} to amount of diamond in player's inventory
  635. add ({sdiamond.%player%} * {diamond.%player%} * {multiplier.%player%}) to {sellamount.%player%}
  636. remove {diamond.%player%} of diamond from player's inventory
  637. if loop-item is diamond block:
  638. set {diamond_block.%player%} to amount of diamond block in player's inventory
  639. add ({sdiamond_block.%player%} * {diamond_block.%player%} * {multiplier.%player%}) to {sellamount.%player%}
  640. remove {diamond_block.%player%} of diamond block from player's inventory
  641. if loop-item is obsidian:
  642. set {obsidian.%player%} to amount of obsidian in player's inventory
  643. add ({sobsidian.%player%} * {obsidian.%player%} * {multiplier.%player%}) to {sellamount.%player%}
  644. remove {obsidian.%player%} of obsidian from player's inventory
  645. if loop-item is emerald block:
  646. set {emerald_block.%player%} to amount of emerald block in player's inventory
  647. add ({semerald_block.%player%} * {emerald_block.%player%} * {multiplier.%player%}) to {sellamount.%player%}
  648. remove {emerald_block.%player%} of emerald block from player's inventory
  649. wait 1 tick
  650. if {sellamount.%player%} is greater than 0:
  651. add {sellamount.%player%} to player's balance
  652. send "&b&lXPnet &8» &fYou have sold your items for &b%{sellamount.%player%}%&f!" to player
  653. set {sellamount.%player%} to 0
  654.  
  655. command /multiplier <player> [<number>]:
  656. permission: multiplier.use
  657. trigger:
  658. if arg-1 is set:
  659. set {multiplier.%arg-1%} to arg-2
  660. else if arg-1 is not set:
  661. set {multiplier.%arg-1%} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement