Advertisement
twogz

Untitled

Jul 13th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 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. on build:
  18. if player is not op:
  19. cancel event
  20.  
  21. on break:
  22. if player is not op:
  23. cancel event
  24. if event-block is coal ore:
  25. set event-block to stone
  26. give coal item to player
  27. execute console command "/xp add %player% 5"
  28. wait 10 seconds
  29. set event-block to coal ore
  30.  
  31. if event-block is iron ore:
  32. set event-block to stone
  33. give iron ingot to player
  34. execute console command "/xp add %player% 5"
  35. wait 10 seconds
  36. set event-block to iron ore
  37.  
  38. if event-block is gold ore:
  39. set event-block to stone
  40. give gold ingot to player
  41. execute console command "/xp add %player% 5"
  42. wait 10 seconds
  43. set event-block to gold ore
  44.  
  45. if event-block is diamond ore:
  46. if {level::%uuid of player%} < 20:
  47. message "&c&lYou must be at least Level 20 to mine this!"
  48. else:
  49. set event-block to stone
  50. give diamond to player
  51. execute console command "/xp add %player% 5"
  52. wait 10 seconds
  53. set event-block to diamond ore
  54.  
  55. if event-block is emerald ore:
  56. if {level::%uuid of player%} < 20:
  57. message "&c&lYou must be at least Level 20 to mine this!"
  58. else:
  59. set event-block to stone
  60. give emerald to player
  61. execute console command "/xp add %player% 5"
  62. wait 10 seconds
  63. set event-block to emerald ore
  64.  
  65. on drop:
  66. cancel event
  67. message "&cIf you do not want an item, place it in"
  68. message "7cthe disposal at spawn!"
  69.  
  70. on chat:
  71. cancel event
  72. broadcast "&7Lvl %{level::%uuid of player%}% &e%player% &f%message%"
  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