Advertisement
twogz

Untitled

Jul 24th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.07 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 break:
  8. if player's gamemode is survival:
  9. cancel event
  10. if event-block is coal ore:
  11. give coal to player
  12. execute console command "/xp give %player% 1"
  13. set event-block to cobblestone
  14. wait 3 seconds
  15. set event-block to coal ore
  16.  
  17. if event-block is iron ore:
  18. if {level.%uuid of player%} >= 10:
  19. give iron ingot to player
  20. execute console command "/xp give %player% 1"
  21. set event-block to cobblestone
  22. wait 3 seconds
  23. set event-block to iron ore
  24. else:
  25. message "&c&lHey! &7You must be &bLevel 10 &7to mine this block."
  26.  
  27. if event-block is gold ore:
  28. if {level.%uuid of player%} >= 20:
  29. give gold ingot to player
  30. execute console command "/xp give %player% 2"
  31. set event-block to cobblestone
  32. wait 3 seconds
  33. set event-block to gold ore
  34. else:
  35. message "&c&lHey! &7You must be &bLevel 20 &7to mine this block."
  36.  
  37. if event-block is redstone ore:
  38. if {level.%uuid of player%} >= 30:
  39. give redstone dust to player
  40. execute console command "/xp give %player% 2"
  41. set event-block to cobblestone
  42. wait 3 seconds
  43. set event-block to redstone dust
  44. else:
  45. message "&c&lHey! &7You must be &bLevel 30 &7to mine this block."
  46.  
  47. if event-block is lapis ore:
  48. if {level.%uuid of player%} >= 40:
  49. give lapis to player
  50. execute console command "/xp give %player% 3"
  51. set event-block to cobblestone
  52. wait 3 seconds
  53. set event-block to lapis ore
  54. else:
  55. message "&c&lHey! &7You must be &bLevel 40 &7to mine this block."
  56.  
  57. if event-block is diamond ore:
  58. if {level.%uuid of player%} >= 50:
  59. give diamond to player
  60. execute console command "/xp give %player% 3"
  61. set event-block to cobblestone
  62. wait 3 seconds
  63. set event-block to diamond ore
  64. else:
  65. message "&c&lHey! &7You must be &bLevel 50 &7to mine this block."
  66.  
  67. if event-block is emerald ore:
  68. if {level.%uuid of player%} >= 75:
  69. give emerald to player
  70. execute console command "/xp give %player% 4"
  71. set event-block to cobblestone
  72. wait 3 seconds
  73. set event-block to emerald ore
  74. else:
  75. message "&c&lHey! &7You must be &bLevel 75 &7to mine this block."
  76.  
  77. if event-block is quartz ore:
  78. if {level.%uuid of player%} >= 100:
  79. give quartz item to player
  80. execute console command "/xp give %player% 4"
  81. set event-block to nether brick
  82. wait 3 seconds
  83. set event-block to quartz ore
  84. else:
  85. message "&c&lHey! &7You must be &bLevel 100 &7to mine this block."
  86.  
  87. command /reset:
  88. trigger:
  89. set {level.%uuid of player%} to 0
  90. set {xp.%uuid of player%} to 0
  91. set {xpmax.%uuid of player%} to 10
  92.  
  93. on chat:
  94. cancel event
  95. if {prefix.%uuid of player%} is not set:
  96. if {mute.%player%} is more than 0:
  97. message "&cYou can not talk while you are muted. &b%{mute.%player%}% &cseconds left."
  98. stop
  99. else:
  100. broadcast "&eLvl. %{level.%uuid of player%}% &7%player%: %message%"
  101.  
  102. else:
  103. if {mute.%player%} is more than 0:
  104. message "&cYou can not talk while you are muted. &b%{mute.%player%}% &cseconds left."
  105. stop
  106. else:
  107. broadcast "&eLvl. %{level.%uuid of player%}% %{prefix.%uuid of player%}% %player%&f: %message%"
  108.  
  109. on right click on ender chest:
  110. if {level.%uuid of player%} < 20:
  111. cancel event
  112. message "&c&lHey! &7You must be &bLevel 20 &7to access the Vault!"
  113.  
  114. command /miner [<integer>]:
  115. trigger:
  116. if {level.%uuid of player%} < 10:
  117. message "&c&lHey! &7You must be &bLevel 10 &7to talk to The Miner"
  118. else:
  119. if arg 1 is not set:
  120. open chest with 6 rows named "The Miner" to player
  121.  
  122. wait 0.6 ticks
  123.  
  124. 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
  125.  
  126. format slot 19 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"]
  127.  
  128. format slot 28 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"]
  129.  
  130. format slot 37 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"]
  131.  
  132. format slot 50 of player with arrow named "&aNext Page >" with lore "&7Click to view the next page." to run [player command "/miner 2"]
  133.  
  134. if arg 1 = 2:
  135. open chest with 6 rows named "The Miner (Page 2)" to player
  136.  
  137. wait 0.6 ticks
  138.  
  139. 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
  140.  
  141. format slot 48 of player with arrow named "&a< Previous Page" with lore "&7Click to view the previous page." to run [player command "/miner"]
  142.  
  143. format slot 19 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"]
  144.  
  145. format slot 28 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"]
  146.  
  147.  
  148. command /xp [<text>] [<player>] [<integer>]:
  149. permission: *
  150. trigger:
  151. if arg 1 is "give":
  152. add arg 3 to {xp.%uuid of arg 2%}
  153. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  154. add 1 to {level.%uuid of arg 2%}
  155. add 2 to {xpmax.%uuid of arg 2%}
  156. set {xp.%uuid of arg 2%} to 0
  157. message "&aYou are now level %{level.%uuid of arg 2%}%!" to arg 2
  158. message "&eNext Level: %{xp.%uuid of arg 2%}%/%{xpmax.%uuid of arg 2%}% XP Remaining" to arg 2
  159.  
  160. command /merchant:
  161. trigger:
  162. message "&a[NPC] Merchant: &fHey %player%, come sell some items!"
  163. open chest with 5 rows named "The Merchant" to player
  164.  
  165. wait 0.6 ticks
  166.  
  167. 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
  168.  
  169. format slot 20 of player with coal item named "&eCoal" with lore "&cRequired Level: 0||||&fPrice: &a$0.10 each||||&fClick here to sell." to run [player command "/sell coal"]
  170.  
  171. format slot 21 of player with iron ingot named "&eIron" with lore "&cRequired Level: 10||||&fPrice: &a$0.15 each||||&fClick here to sell." to run [player command "/sell iron"]
  172.  
  173. format slot 22 of player with gold ingot named "&eGold" with lore "&cRequired Level: 20||||&fPrice: &a$0.20 each||||&fClick here to sell." to run [player command "/sell gold"]
  174.  
  175. format slot 23 of player with redstone dust named "&eRedstone" with lore "&cRequired Level: 30||||&fPrice: &a$0.30 each||||&fClick here to sell." to run [player command "/sell redstone"]
  176.  
  177. format slot 24 of player with lapis lazuli named "&eLapis Lazuli" with lore "&cRequired Level: 40||||&fPrice: &a$0.50 each||||&fClick here to sell." to run [player command "/sell lapis"]
  178.  
  179. format slot 30 of player with diamond named "&eDiamond" with lore "&cRequired Level: 50||||&fPrice: &a$1 each||||&fClick here to sell." to run [player command "/sell diamond"]
  180.  
  181. format slot 31 of player with emerald named "&eEmerald" with lore "&cRequired Level: 75||||&fPrice: &a$1.75 each||||&fClick here to sell." to run [player command "/sell emerald"]
  182.  
  183. format slot 32 of player with quartz item named "&eQuartz" with lore "&cRequired Level: 100||||&fPrice: &a$2.50 each||||&fClick here to sell." to run [player command "/sell quartz"]
  184.  
  185. command /prefix [<player>] [<text>]:
  186. permission: prefix.*
  187. trigger:
  188. set {prefix.%uuid of arg 1%} to "%coloured arg 2%"
  189. message "&aSet %arg 1%'s prefix to %coloured arg 2%"
  190.  
  191. if arg 2 is not set:
  192. delete {prefix.%uuid of arg 1%}
  193.  
  194. command /level:
  195. trigger:
  196. message ""
  197. message "&7You are currently level %{level.%uuid of player%}%"
  198. message "&bProgress: %{xp.%uuid of player%}%/%{xpmax.%uuid of player%}% XP Remaining"
  199. message ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement