Advertisement
twogz

Untitled

Jul 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.46 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 [<player>]:
  88. trigger:
  89. if arg 1 is not set:
  90. set {level.%uuid of player%} to 0
  91. set {xp.%uuid of player%} to 0
  92. set {xpmax.%uuid of player%} to 10
  93. else:
  94. set {level.%uuid of arg 1%} to 0
  95. set {xp.%uuid of arg 1%} to 0
  96. set {xpmax.%uuid of arg 1%} to 10
  97.  
  98. on chat:
  99. cancel event
  100. if {prefix.%uuid of player%} is not set:
  101. if {mute.%player%} is more than 0:
  102. message "&cYou can not talk while you are muted. &b%{mute.%player%}% &cseconds left."
  103. stop
  104. else:
  105. broadcast "&eLvl. %{level.%uuid of player%}% &7%player%: %message%"
  106.  
  107. else:
  108. if {mute.%player%} is more than 0:
  109. message "&cYou can not talk while you are muted. &b%{mute.%player%}% &cseconds left."
  110. stop
  111. else:
  112. broadcast "&eLvl. %{level.%uuid of player%}% %{prefix.%uuid of player%}% %player%&f: %message%"
  113.  
  114. on right click on ender chest:
  115. if {level.%uuid of player%} < 20:
  116. cancel event
  117. message "&c&lHey! &7You must be &bLevel 20 &7to access the Vault!"
  118.  
  119. command /miner [<integer>]:
  120. trigger:
  121. if {level.%uuid of player%} < 5:
  122. message "&c&lHey! &7You must be &bLevel 5 &7to talk to The Miner"
  123.  
  124. else:
  125. open chest with 5 rows named "The Miner" to player
  126.  
  127. wait 0.6 ticks
  128.  
  129. 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
  130.  
  131. 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"]
  132.  
  133. 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"]
  134.  
  135. 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"]
  136.  
  137. 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"]
  138.  
  139. 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"]
  140.  
  141.  
  142. command /xp [<text>] [<player>] [<integer>]:
  143. permission: *
  144. trigger:
  145. if arg 1 is "give":
  146. add arg 3 to {xp.%uuid of arg 2%}
  147. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  148. add 1 to {level.%uuid of arg 2%}
  149. add 2 to {xpmax.%uuid of arg 2%}
  150. set {xp.%uuid of arg 2%} to 0
  151. message "&aYou are now level %{level.%uuid of arg 2%}%!" to arg 2
  152. message "&eNext Level: %{xp.%uuid of arg 2%}%/%{xpmax.%uuid of arg 2%}% XP Remaining" to arg 2
  153.  
  154. command /merchant:
  155. trigger:
  156. message "&a[NPC] Merchant: &fHey %player%, come sell some items!"
  157. open chest with 5 rows named "The Merchant" to player
  158.  
  159. wait 0.6 ticks
  160.  
  161. 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
  162.  
  163. 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"]
  164.  
  165. 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"]
  166.  
  167. 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"]
  168.  
  169. 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"]
  170.  
  171. 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"]
  172.  
  173. 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"]
  174.  
  175. 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"]
  176.  
  177. 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"]
  178.  
  179. command /prefix [<player>] [<text>]:
  180. permission: prefix.*
  181. trigger:
  182. set {prefix.%uuid of arg 1%} to "%coloured arg 2%"
  183. message "&aSet %arg 1%'s prefix to %coloured arg 2%"
  184.  
  185. if arg 2 is not set:
  186. delete {prefix.%uuid of arg 1%}
  187.  
  188. command /level:
  189. trigger:
  190. message ""
  191. message "&7You are currently level %{level.%uuid of player%}%"
  192. message "&bProgress: %{xp.%uuid of player%}%/%{xpmax.%uuid of player%}% XP Remaining"
  193. message ""
  194.  
  195. on drop:
  196. if event-item is pickaxe:
  197. if player's gamemode is survival:
  198. cancel event
  199. message "&c&lHey! &7You can't drop pickaxes."
  200.  
  201. on place:
  202. if player's gamemode is survival:
  203. cancel event
  204.  
  205. command /sorry:
  206. trigger:
  207. if {sorry.%uuid of player%} is not set:
  208. set {sorry.%uuid of player%} to true
  209. message "&cSorry for resetting! Here are some items to get you started."
  210. give stone pickaxe to player
  211. execute console command "/xp give %player% 10"
  212. message "&aYou have received 10 player experience."
  213. execute console command "/prefix %player% &d[BETA]"
  214. stop
  215. if {sorry.%uuid of player%} is true:
  216. message "&aYou have already claimed this."
  217. stop
  218.  
  219. on right click on enchantment table:
  220. cancel event
  221. message "&c&lSorry! &7This feature is still in development."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement