Advertisement
twogz

Untitled

Jul 13th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.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 50
  5.  
  6. command /reset:
  7. trigger:
  8. set {level::%uuid of player%} to 0
  9. set {xp::%uuid of player%} to 0
  10. set {xpmax::%uuid of player%} to 50
  11.  
  12.  
  13. on build:
  14. if player is not op:
  15. cancel event
  16.  
  17.  
  18.  
  19. on break:
  20. if player is not op:
  21. cancel event
  22. if event-block is coal ore:
  23. set event-block to stone
  24. give coal item to player
  25. execute console command "/xp add %player% 5"
  26. wait 10 seconds
  27. set event-block to coal ore
  28.  
  29. if event-block is iron ore:
  30. set event-block to stone
  31. give iron ingot to player
  32. execute console command "/xp add %player% 5"
  33. wait 10 seconds
  34. set event-block to iron ore
  35.  
  36. if event-block is gold ore:
  37. set event-block to stone
  38. give gold ingot to player
  39. execute console command "/xp add %player% 5"
  40. wait 10 seconds
  41. set event-block to gold ore
  42.  
  43. if event-block is diamond ore:
  44. if {level::%uuid of player%} < 20:
  45. message "&c&lYou must be at least Level 20 to mine this!"
  46. else:
  47. set event-block to stone
  48. give diamond to player
  49. execute console command "/xp add %player% 5"
  50. wait 10 seconds
  51. set event-block to diamond ore
  52.  
  53. if event-block is emerald ore:
  54. if {level::%uuid of player%} < 20:
  55. message "&c&lYou must be at least Level 20 to mine this!"
  56. else:
  57. set event-block to stone
  58. give emerald to player
  59. execute console command "/xp add %player% 5"
  60. wait 10 seconds
  61. set event-block to emerald ore
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. on chat:
  70. cancel event
  71. broadcast "&7Lvl %{level::%uuid of player%}% &e%player% &f%message%"
  72.  
  73.  
  74. command /xp [<text>] [<player>] [<integer>]:
  75. executable by: console
  76. trigger:
  77. if arg 1 is "add":
  78. add arg 3 to {xp::%uuid of arg 2%}
  79. message "&a&l + %arg 3% XP" to arg 2
  80. if {xp::%uuid of arg 2%} >= {xpmax::%uuid of arg 2%}:
  81. add 1 to {level::%uuid of arg 2%}
  82. set {xp::%uuid of arg 2%} to 0
  83. message "&e&lYou are now Level %{level::%uuid of arg 2%}%" to arg 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement