Advertisement
twogz

Untitled

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