Advertisement
twogz

Untitled

Jul 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 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. message "&a[NPC] Miner: &fHey there, what do you need?"
  41. open chest with 5 rows named "The Miner" to player
  42.  
  43. wait 0.6 ticks
  44.  
  45. 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
  46.  
  47. command /xp [<text>] [<player>] [<integer>]:
  48. permission: *
  49. trigger:
  50. if arg 1 is "give":
  51. add arg 3 to {xp.%uuid of 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 "&aYou are now level %{level.%uuid of arg 2%}%!" to arg 2
  57. message "&eNext Level: %{xp.%uuid of arg 2%}%/%{xpmax.%uuid of arg 2%}% XP Remaining" to arg 2
  58.  
  59. command /merchant:
  60. trigger:
  61. message "&a[NPC] Merchant: &fHey %player%, come sell some items!"
  62. open chest with 5 rows named "The Merchant" to player
  63.  
  64. wait 0.6 ticks
  65.  
  66. 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
  67.  
  68. format slot 20 of player with coal item named "&eCoal" with lore "&cRequired Level: 0||||&fPrice: &a$0.10 each||||&fClick here to sell." to run [player command "/sell coal"]
  69.  
  70. format slot 21 of player with iron ingot named "&eIron" with lore "&cRequired Level: 10||||&fPrice: &a$0.15 each||||&fClick here to sell." to run [player command "/sell iron"]
  71.  
  72. format slot 22 of player with gold ingot named "&eGold" with lore "&cRequired Level: 20||||&fPrice: &a$0.20 each||||&fClick here to sell." to run [player command "/sell gold"]
  73.  
  74. format slot 23 of player with redstone dust named "&eRedstone" with lore "&cRequired Level: 30||||&fPrice: &a$0.30 each||||&fClick here to sell." to run [player command "/sell redstone"]
  75.  
  76. format slot 24 of player with lapis lazuli named "&eLapis Lazuli" with lore "&cRequired Level: 40||||&fPrice: &a$0.50 each||||&fClick here to sell." to run [player command "/sell lapis"]
  77.  
  78. format slot 30 of player with diamond named "&eDiamond" with lore "&cRequired Level: 50||||&fPrice: &a$1 each||||&fClick here to sell." to run [player command "/sell diamond"]
  79.  
  80. format slot 31 of player with emerald named "&eEmerald" with lore "&cRequired Level: 75||&Price: &a$1.75 each||||&fClick here to sell." to run [player command "/sell emerald"]
  81.  
  82. format slot 32 of player with quartz item named "&eQuartz" with lore "&cRequired Level: 100||||&fPrice: &a$2.50 each||&fClick here to sell.." to run [player command "/sell quartz"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement