Advertisement
twogz

Untitled

Jul 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 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 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.%uuid of player%} to 0
  20. set {xpmax.%uuid of player%} to 10
  21.  
  22. on chat:
  23. cancel event
  24. if {prefix.%uuid of 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.%uuid of 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. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  52. add 1 to {level.%uuid of arg 2%}
  53. add 2 to {xpmax.%uuid of arg 2%}
  54. set {xp.%uuid of arg 2%} to 0
  55. message "&aYou are now level %{level.%uuid of arg 2%}%!" to arg 2
  56. message "&eNext Level: %{xp.%uuid of arg 2%}%/%{xpmax.%uuid of arg 2%}% XP Remaining" to arg 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement