Advertisement
twogz

Untitled

Jul 9th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 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%}% &e%player%: &f%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 - (%{playerxp::%uuid of arg 2%}%/%{playerxpmax::%uuid of arg 2%}%)" 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. if event-block is coal ore:
  37. set event-block to stone
  38. give coal item to player
  39. execute console command "/xp add %player% 5"
  40. wait 1 minute
  41. set event-block to coal ore
  42.  
  43. if event-block is iron ore:
  44. set event-block to stone
  45. give iron ingot to player
  46. execute console command "/xp add %player% 5"
  47. wait 1 minute
  48. set event-block to iron ore
  49.  
  50. if event-block is gold ore:
  51. if {level::%uuid of player%} >= 5:
  52. set event-block to stone
  53. give gold ingot to player
  54. execute console command "/xp add %player% 5"
  55. wait 1 minute
  56. set event-block to gold ore
  57. else:
  58. message "&c&lYou need to be lvl. 5!"
  59.  
  60. if event-block is diamond ore:
  61. if {level::%uuid of player%} >= 10:
  62. set event-block to stone
  63. give diamond to player
  64. execute console command "/xp add %player% 10"
  65. wait 1 minute
  66. set event-block to diamond ore
  67. else:
  68. message "&c&lYou need to be lvl. 10!"
  69.  
  70. if event-block is emerald ore:
  71. if {level::%uuid of player%} >= 15:
  72. set event-block to stone
  73. give emerald to player
  74. execute console command "/xp add %player% 15"
  75. wait 1 minute
  76. set event-block to emerald ore
  77. else:
  78. message "&c&lYou need to be lvl. 15!"
  79.  
  80. if event-block is lapis lazuli ore:
  81. set event-block to stone
  82. give 3 lapis lazuli to player
  83. execute console command "/xp add %player% 1"
  84. wait 30 seconds
  85. set event-block to lapis lazuli ore
  86.  
  87. if event-block is oak log:
  88. set event-block to bedrock
  89. give oak wood log to player
  90. execute console command "/xp add %player% 1"
  91. wait 5 seconds
  92. set event-block to oak log
  93.  
  94. if event-block is not coal ore or iron ore or gold ore or diamond ore or emerald ore or lapis lazuli ore:
  95. cancel event
  96.  
  97. command /clearchat:
  98. aliases: cc
  99. trigger:
  100. if player does not have permission "admin.clearchat":
  101. message "&cYou can't use this command."
  102.  
  103. else:
  104. loop 1000 times:
  105. broadcast " "
  106.  
  107. on join:
  108. wait 0.2 ticks
  109. loop 1000 times:
  110. message " "
  111. wait 0.2 ticks
  112. loop 1000 times:
  113. message " "
  114. wait 0.2 ticks
  115. loop 1000 times:
  116. message " "
  117. wait 0.2 ticks
  118. loop 1000 times:
  119. message " "
  120. wait 0.2 ticks
  121. loop 1000 times:
  122. message " "
  123. message "&e&l Killzone: &7&oCurrently running beta v0.0.1"
  124. message " "
  125. message "&f Get a boost, purchase a package to support"
  126. message "&f the growth of Killzone aswell as the community!"
  127. message " "
  128. message "&f Type &b/buy &fto access the webstore"
  129. message " "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement