Advertisement
twogz

Untitled

Jul 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 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. give wood pickaxe to player
  6.  
  7. on break:
  8. if player's gamemode is survival:
  9. cancel event
  10. if event-block is coal ore:
  11. give coal to player
  12. execute console command "/xp give %player% 1"
  13. set event-block to cobblestone
  14. wait 3 seconds
  15. set event-block to coal ore
  16.  
  17. command /reset:
  18. trigger:
  19. set {level.%uuid of player%} to 0
  20. set {xp.%uuid of player%} to 0
  21. set {xpmax.%uuid of player%} to 10
  22.  
  23. on chat:
  24. cancel event
  25. if {prefix.%uuid of player%} is not set:
  26. if {mute.%player%} is more than 0:
  27. message "&cYou can not talk while you are muted. &b%{mute.%player%}% &cseconds left."
  28. stop
  29. else:
  30. broadcast "&eLvl. %{level.%uuid of player%}% &7%player%: %message%"
  31.  
  32. else:
  33. if {mute.%player%} is more than 0:
  34. message "&cYou can not talk while you are muted. &b%{mute.%player%}% &cseconds left."
  35. stop
  36. else:
  37. broadcast "&eLvl. %{level.%uuid of player%}% %{prefix.%uuid of player%}% %player%&f: %message%"
  38.  
  39. on right click on ender chest:
  40. if {level.%uuid of player%} < 20:
  41. cancel event
  42. message "&c&lHey! &7You must be &bLevel 20 &7to access the Vault!"
  43.  
  44. command /miner:
  45. trigger:
  46. if {level.%uuid of player%} < 10:
  47. message "&c&lHey! &7You must be &bLevel 10 &7to talk to The Miner"
  48. else:
  49. message "&a[NPC] Miner: &fHey there, what do you need?"
  50. open chest with 5 rows named "The Miner" to player
  51.  
  52. wait 0.6 ticks
  53.  
  54. 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
  55.  
  56. command /xp [<text>] [<player>] [<integer>]:
  57. permission: *
  58. trigger:
  59. if arg 1 is "give":
  60. add arg 3 to {xp.%uuid of arg 2%}
  61. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  62. add 1 to {level.%uuid of arg 2%}
  63. add 2 to {xpmax.%uuid of arg 2%}
  64. set {xp.%uuid of arg 2%} to 0
  65. message "&aYou are now level %{level.%uuid of arg 2%}%!" to arg 2
  66. message "&eNext Level: %{xp.%uuid of arg 2%}%/%{xpmax.%uuid of arg 2%}% XP Remaining" to arg 2
  67.  
  68. command /merchant:
  69. trigger:
  70. message "&a[NPC] Merchant: &fHey %player%, come sell some items!"
  71. open chest with 5 rows named "The Merchant" to player
  72.  
  73. wait 0.6 ticks
  74.  
  75. 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
  76.  
  77. 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"]
  78.  
  79. 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"]
  80.  
  81. 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"]
  82.  
  83. 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"]
  84.  
  85. 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"]
  86.  
  87. 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"]
  88.  
  89. format slot 31 of player with emerald named "&eEmerald" with lore "&cRequired Level: 75||||&fPrice: &a$1.75 each||||&fClick here to sell." to run [player command "/sell emerald"]
  90.  
  91. 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"]
  92.  
  93. command /prefix [<player>] [<text>]:
  94. permission: prefix.*
  95. trigger:
  96. set {prefix.%uuid of arg 1%} to "%coloured arg 2%"
  97. message "&aSet %arg 1%'s prefix to %coloured arg 2%"
  98.  
  99. if arg 2 is not set:
  100. delete {prefix.%uuid of arg 1%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement