Advertisement
twogz

Untitled

Jul 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 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 [<integer>]:
  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. if arg 1 is not set:
  50. message "&a[NPC] Miner: &fHey there, what do you need?"
  51. open chest with 6 rows named "The Miner" to player
  52.  
  53. wait 0.6 ticks
  54.  
  55. 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
  56.  
  57. format slot 19 of player with wood pickaxe named "&eWooden Pickaxe" with lore "&cRequired Level: 0||||&fPrice: &a$5||||&fClick to buy this item." to close then run [player command "/purchase woodpick"]
  58.  
  59. format slot 28 of player with stone pickaxe named "&eStone Pickaxe" with lore "&cRequired Level: 5||||&fPrice: &a$15||||&fClick to buy this item." to close then run [player command "/purchase stonepick"]
  60.  
  61. format slot 37 of player with iron pickaxe named "&eIron Pickaxe" with lore "&cRequired Level: 10||||&fPrice: &a$30||||&fClick to buy this item." to close then run [player command "/purchase ironpick"]
  62.  
  63. format slot 49 of player with arrow named "&aNext Page >" with lore "&7Click to view the next page." to run [player command "/miner 2"]
  64.  
  65. if arg 1 = 2:
  66. open chest with 6 rows named "The Miner (Page 2)" to player
  67.  
  68. wait 0.6 ticks
  69.  
  70. format slot 47 of player with arrow named "&a< Previous Page" with lore "&7Click to view the previous page." to run [player command "/miner"]
  71.  
  72.  
  73. command /xp [<text>] [<player>] [<integer>]:
  74. permission: *
  75. trigger:
  76. if arg 1 is "give":
  77. add arg 3 to {xp.%uuid of arg 2%}
  78. if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
  79. add 1 to {level.%uuid of arg 2%}
  80. add 2 to {xpmax.%uuid of arg 2%}
  81. set {xp.%uuid of arg 2%} to 0
  82. message "&aYou are now level %{level.%uuid of arg 2%}%!" to arg 2
  83. message "&eNext Level: %{xp.%uuid of arg 2%}%/%{xpmax.%uuid of arg 2%}% XP Remaining" to arg 2
  84.  
  85. command /merchant:
  86. trigger:
  87. message "&a[NPC] Merchant: &fHey %player%, come sell some items!"
  88. open chest with 5 rows named "The Merchant" to player
  89.  
  90. wait 0.6 ticks
  91.  
  92. 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
  93.  
  94. 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"]
  95.  
  96. 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"]
  97.  
  98. 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"]
  99.  
  100. 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"]
  101.  
  102. 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"]
  103.  
  104. 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"]
  105.  
  106. 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"]
  107.  
  108. 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"]
  109.  
  110. command /prefix [<player>] [<text>]:
  111. permission: prefix.*
  112. trigger:
  113. set {prefix.%uuid of arg 1%} to "%coloured arg 2%"
  114. message "&aSet %arg 1%'s prefix to %coloured arg 2%"
  115.  
  116. if arg 2 is not set:
  117. delete {prefix.%uuid of arg 1%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement