Advertisement
twogz

Untitled

Jul 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.18 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.  
  119. else:
  120. open chest with 5 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 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"]
  127.  
  128. 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"]
  129.  
  130. 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"]
  131.  
  132. 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"]
  133.  
  134. 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"]
  135.  
  136.  
  137. command /xp [<text>] [<player>] [<integer>]:
  138. permission: *
  139. trigger:
  140. if arg 1 is "give":
  141. add arg 3 to {xp.%uuid of arg 2%}
  142. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  143. add 1 to {level.%uuid of arg 2%}
  144. add 2 to {xpmax.%uuid of arg 2%}
  145. set {xp.%uuid of arg 2%} to 0
  146. message "&aYou are now level %{level.%uuid of arg 2%}%!" to arg 2
  147. message "&eNext Level: %{xp.%uuid of arg 2%}%/%{xpmax.%uuid of arg 2%}% XP Remaining" to arg 2
  148.  
  149. command /merchant:
  150. trigger:
  151. message "&a[NPC] Merchant: &fHey %player%, come sell some items!"
  152. open chest with 5 rows named "The Merchant" to player
  153.  
  154. wait 0.6 ticks
  155.  
  156. 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
  157.  
  158. 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"]
  159.  
  160. 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"]
  161.  
  162. 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"]
  163.  
  164. 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"]
  165.  
  166. 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"]
  167.  
  168. 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"]
  169.  
  170. 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"]
  171.  
  172. 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"]
  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. execute console command "/prefix %player% &d[BETA]"
  209. if {sorry.%uuid of player%} is true:
  210. message "&aYou have already claimed this."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement