Advertisement
twogz

Untitled

Jul 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. on first join:
  2. set {newlevel.%uuid of player%} to 0
  3. set {xp.%player%} to 0
  4. set {xpmax.%player%} to 10
  5.  
  6. on break:
  7. if player's gamemode is survival:
  8. cancel event
  9. if event-block is coal ore:
  10. give coal to player
  11. execute console command "/xp give %player% 1"
  12. set event-block to cobblestone
  13. wait 3 seconds
  14. set event-block to coal ore
  15.  
  16. command /reset:
  17. trigger:
  18. set {level.%uuid of player%} to 0
  19. set {xp.%player%} to 0
  20. set {xpmax.%player%} to 10
  21.  
  22. on chat:
  23. cancel event
  24. if {prefix.%player%} is not set:
  25. broadcast "&eLvl. %{level.%uuid of player%}% &7%player%: %message%"
  26.  
  27. else:
  28. broadcast "&eLvl. %{level.%uuid of player%}% %{prefix.%player%}% %player%&f: %message%"
  29.  
  30. on right click on ender chest:
  31. if {level.%uuid of player%} < 20:
  32. cancel event
  33. message "&c&lYou must be at least &4&lLevel 20 &c&lto use the Vault!"
  34.  
  35. command /miner:
  36. trigger:
  37. if {level.%uuid of player%} < 10:
  38. message "&c&lYou must be at least &4&lLevel 10 &c&lto talk to The Miner!"
  39. else:
  40. open chest with 5 rows named "The Miner" to player
  41.  
  42. wait 0.6 ticks
  43.  
  44. format slot 4 of player with nether star named "&a&l%player%'s Balance" with lore "&fYou have &2%player's balance%" to be unstealable
  45.  
  46. command /xp [<text>] [<player>] [<integer>]:
  47. permission: *
  48. trigger:
  49. if arg 1 is "give":
  50. add arg 3 to {xp.%uuid of arg 2%}
  51. message "&e&lYou received &6&l%arg 3% &e&lXP!" to arg 2
  52. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  53. add 1 to {level.%uuid of arg 2%}
  54. add 2 to {xpmax.%uuid of arg 2%}
  55. set {xp.%uuid of arg 2%} to 0
  56. message "&a&lCongratulations! You have advanced to &2&lLevel 2&a&l!" to arg 2
  57. message "&7&lYou next level is &b&lLevel %{level.%uuid of arg 2%} + 1% &7&land costs &b&l%{xpmax.%uuid of arg 2%}% XP&7&l!" to arg 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement