Advertisement
twogz

Untitled

Jul 24th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. on first join:
  2. set {level.%uuid of player%} to 0
  3. set {xp.%uuid of player%} to 0
  4. set {xpmax.%uuid of player%} to 10
  5. give wood pickaxe to player
  6.  
  7. on join:
  8. wait 0.2 ticks
  9. loop 1000 times:
  10. message " "
  11. wait 0.2 ticks
  12. loop 1000 times:
  13. message " "
  14. wait 0.2 ticks
  15. loop 1000 times:
  16. message " "
  17. wait 0.2 ticks
  18. loop 1000 times:
  19. message " "
  20. wait 0.2 ticks
  21. loop 1000 times:
  22. message " "
  23. message "&b&l Eco 2.0 &7- Version (beta v0.1)"
  24. message "&7 The update is here!"
  25.  
  26. on break:
  27. if player's gamemode is survival:
  28. cancel event
  29. if event-block is coal ore:
  30. give coal to player
  31. execute console command "/xp give %player% 1"
  32. set event-block to cobblestone
  33. wait 3 seconds
  34. set event-block to coal ore
  35.  
  36. if event-block is iron ore:
  37. if {level.%uuid of player%} >= 10:
  38. give iron ingot to player
  39. execute console command "/xp give %player% 1"
  40. set event-block to cobblestone
  41. wait 3 seconds
  42. set event-block to iron ore
  43. else:
  44. message "&c&lHey! &7You must be &bLevel 10 &7to mine this block."
  45.  
  46. if event-block is gold ore:
  47. if {level.%uuid of player%} >= 20:
  48. give gold ingot to player
  49. execute console command "/xp give %player% 2"
  50. set event-block to cobblestone
  51. wait 3 seconds
  52. set event-block to gold ore
  53. else:
  54. message "&c&lHey! &7You must be &bLevel 20 &7to mine this block."
  55.  
  56. if event-block is redstone ore:
  57. if {level.%uuid of player%} >= 30:
  58. give redstone dust to player
  59. execute console command "/xp give %player% 2"
  60. set event-block to cobblestone
  61. wait 3 seconds
  62. set event-block to redstone ore
  63. else:
  64. message "&c&lHey! &7You must be &bLevel 30 &7to mine this block."
  65.  
  66. if event-block is lapis ore:
  67. if {level.%uuid of player%} >= 40:
  68. give lapis to player
  69. execute console command "/xp give %player% 3"
  70. set event-block to cobblestone
  71. wait 3 seconds
  72. set event-block to lapis ore
  73. else:
  74. message "&c&lHey! &7You must be &bLevel 40 &7to mine this block."
  75.  
  76. if event-block is diamond ore:
  77. if {level.%uuid of player%} >= 50:
  78. give diamond to player
  79. execute console command "/xp give %player% 3"
  80. set event-block to cobblestone
  81. wait 3 seconds
  82. set event-block to diamond ore
  83. else:
  84. message "&c&lHey! &7You must be &bLevel 50 &7to mine this block."
  85.  
  86. if event-block is emerald ore:
  87. if {level.%uuid of player%} >= 75:
  88. give emerald to player
  89. execute console command "/xp give %player% 4"
  90. set event-block to cobblestone
  91. wait 3 seconds
  92. set event-block to emerald ore
  93. else:
  94. message "&c&lHey! &7You must be &bLevel 75 &7to mine this block."
  95.  
  96. if event-block is quartz ore:
  97. if {level.%uuid of player%} >= 100:
  98. give quartz item to player
  99. execute console command "/xp give %player% 4"
  100. set event-block to nether brick
  101. wait 3 seconds
  102. set event-block to quartz ore
  103. else:
  104. message "&c&lHey! &7You must be &bLevel 100 &7to mine this block."
  105.  
  106. command /reset [<player>]:
  107. trigger:
  108. if arg 1 is not set:
  109. set {level.%uuid of player%} to 0
  110. set {xp.%uuid of player%} to 0
  111. set {xpmax.%uuid of player%} to 10
  112. else:
  113. set {level.%uuid of arg 1%} to 0
  114. set {xp.%uuid of arg 1%} to 0
  115. set {xpmax.%uuid of arg 1%} to 10
  116.  
  117. on chat:
  118. cancel event
  119. if {prefix.%uuid of player%} is not set:
  120. if {mute.%player%} is more than 0:
  121. message "&cYou can not talk while you are muted. &b%{mute.%player%}% &cseconds left."
  122. stop
  123. else:
  124. broadcast "&eLvl. %{level.%uuid of player%}% &7%player%: %message%"
  125.  
  126. else:
  127. if {mute.%player%} is more than 0:
  128. message "&cYou can not talk while you are muted. &b%{mute.%player%}% &cseconds left."
  129. stop
  130. else:
  131. broadcast "&eLvl. %{level.%uuid of player%}% %{prefix.%uuid of player%}% %player%&f: %message%"
  132.  
  133. on right click on ender chest:
  134. if {level.%uuid of player%} < 20:
  135. cancel event
  136. message "&c&lHey! &7You must be &bLevel 20 &7to access the Vault!"
  137.  
  138. command /miner [<integer>]:
  139. trigger:
  140. if {level.%uuid of player%} < 5:
  141. message "&c&lHey! &7You must be &bLevel 5 &7to talk to The Miner"
  142.  
  143. else:
  144. open chest with 5 rows named "The Miner" to player
  145.  
  146. wait 0.6 ticks
  147.  
  148. format slot 4 of player with nether star named "&a&l%player%'s Balance" with lore "&fYou have &2%player's balance%" to be unstealable
  149.  
  150. format slot 20 of player with wood pickaxe named "&eWooden Pickaxe" with lore "&cRequired Level: 0||||&fPrice: &a$5||||&fClick to buy this item." to close then run [player command "/purchase woodpick"]
  151.  
  152. format slot 21 of player with stone pickaxe named "&eStone Pickaxe" with lore "&cRequired Level: 5||||&fPrice: &a$15||||&fClick to buy this item." to close then run [player command "/purchase stonepick"]
  153.  
  154. format slot 22 of player with iron pickaxe named "&eIron Pickaxe" with lore "&cRequired Level: 10||||&fPrice: &a$30||||&fClick to buy this item." to close then run [player command "/purchase ironpick"]
  155.  
  156. format slot 23 of player with gold pickaxe named "&eGold Pickaxe" with lore "&cRequired Level: 25||||&fPrice: &a$50||||&fClick to buy this item." to close then run [player command "/purchase goldpick"]
  157.  
  158. format slot 24 of player with diamond pickaxe named "&eDiamond Pickaxe" with lore "&cRequired Level: 50||||&fPrice: &a$90||||&fClick to buy this item." to close then run [player command "/purchase diamondpick"]
  159.  
  160.  
  161. command /xp [<text>] [<player>] [<integer>]:
  162. permission: *
  163. trigger:
  164. if arg 1 is "give":
  165. add arg 3 to {xp.%uuid of arg 2%}
  166. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  167. add 1 to {level.%uuid of arg 2%}
  168. add 2 to {xpmax.%uuid of arg 2%}
  169. set {xp.%uuid of arg 2%} to 0
  170. message "&aYou are now level %{level.%uuid of arg 2%}%!" to arg 2
  171. message "&eNext Level: %{xp.%uuid of arg 2%}%/%{xpmax.%uuid of arg 2%}% XP Remaining" to arg 2
  172.  
  173. command /prefix [<player>] [<text>]:
  174. permission: prefix.*
  175. trigger:
  176. set {prefix.%uuid of arg 1%} to "%coloured arg 2%"
  177. message "&aSet %arg 1%'s prefix to %coloured arg 2%"
  178.  
  179. if arg 2 is not set:
  180. delete {prefix.%uuid of arg 1%}
  181.  
  182. command /level:
  183. trigger:
  184. message ""
  185. message "&7You are currently level %{level.%uuid of player%}%"
  186. message "&bProgress: %{xp.%uuid of player%}%/%{xpmax.%uuid of player%}% XP Remaining"
  187. message ""
  188.  
  189. on drop:
  190. if event-item is pickaxe:
  191. if player's gamemode is survival:
  192. cancel event
  193. message "&c&lHey! &7You can't drop pickaxes."
  194.  
  195. on place:
  196. if player's gamemode is survival:
  197. cancel event
  198.  
  199. command /sorry:
  200. trigger:
  201. if {sorry.%uuid of player%} is not set:
  202. set {sorry.%uuid of player%} to true
  203. message "&cSorry for resetting! Here are some items to get you started."
  204. give stone pickaxe to player
  205. execute console command "/xp give %player% 10"
  206. message "&aYou have received 10 player experience."
  207. stop
  208. if {sorry.%uuid of player%} is true:
  209. message "&aYou have already claimed this."
  210. stop
  211.  
  212. on right click on enchantment table:
  213. cancel event
  214. message "&c&lSorry! &7This feature is still in development."
  215.  
  216. command /givevipkit [<player>]:
  217. executable by: console
  218. trigger:
  219. give iron pickaxe of efficiency 3 to arg 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement