Advertisement
twogz

Untitled

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