Advertisement
twogz

Untitled

Jul 9th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. on first join:
  2. set {playerxp::%uuid of player%} to 0
  3. set {playerxpmax::%uuid of player%} to 50
  4. set {level::%uuid of player%} to 1
  5.  
  6. command /reset:
  7. trigger:
  8. set {playerxp::%uuid of player%} to 0
  9. set {playerxpmax::%uuid of player%} to 50
  10. set {level::%uuid of player%} to 1
  11.  
  12. on chat:
  13. cancel event
  14. broadcast "&7Lvl. %{level::%uuid of player%}% %player%: %message%"
  15.  
  16. command /xp [<text>] [<player>] [<integer>]:
  17. trigger:
  18. if player does not have permission "xp.use":
  19. message "&cYou can't use this command."
  20.  
  21. else:
  22. if arg 1 is "add":
  23. add arg 3 to {playerxp::%uuid of arg 2%}
  24. message "&6&l + %arg 3% Player XP" to arg 2
  25. if {playerxp::%uuid of arg 2%} >= {playerxpmax::%uuid of arg 2%}:
  26. add 1 to {level::%uuid of arg 2%}
  27. set {playerxp::%uuid of arg 2%} to 0
  28. add 25 to {playerxpmax::%uuid of arg 2%}
  29. message "&r " to arg 2
  30. message "&e&lYou are now lvl. %{level::%uuid of arg 2%}%" to arg 2
  31. message "&r " to arg 2
  32.  
  33. on break:
  34. if player does not have permission "build.bypass":
  35. cancel event
  36.  
  37. if event-block is coal ore:
  38. set event-block to stone
  39. give coal item to player
  40. wait 1 minute
  41. set event-block to coal ore
  42. execute console command "/xp add %player% 5"
  43.  
  44. if event-block is iron ore:
  45. set event-block to stone
  46. give iron ingot to player
  47. wait 1 minute
  48. set event-block to iron ore
  49. execute console command "/xp add %player% 5"
  50.  
  51. if event-block is gold ore:
  52. set event-block to stone
  53. give gold ingot to player
  54. wait 1 minute
  55. set event-block to gold ore
  56. execute console command "/xp add %player% 5"
  57.  
  58. if event-block is diamond ore:
  59. set event-block to stone
  60. give diamond to player
  61. wait 1 minute
  62. set event-block to diamond ore
  63. execute console command "/xp add %player% 10"
  64.  
  65. if event-block is emerald ore:
  66. set event-block to stone
  67. give emerald to player
  68. wait 1 minute
  69. set event-block to emerald ore
  70. execute console command "/xp add %player% 15"
  71.  
  72. if event-block is lapis lazuli ore:
  73. set event-block to stone
  74. give 3 lapis lazuli to player
  75. wait 30 seconds
  76. set event-block to lapis lazuli ore
  77. execute console command "/xp add %player% 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement