Oxalist

Untitled

Mar 18th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.48 KB | None | 0 0
  1. command /buystone:
  2. trigger:
  3. if player's balance is less than 9:
  4. send "&e(!) You do not have enough money to buy that"
  5. if player's balance is more than 9:
  6. give 32 stone to player
  7. remove 10 from player's balance
  8. command /buygrass:
  9. trigger:
  10. if player's balance is less than 19:
  11. send "&e(!) You do not have enough money to buy that"
  12. if player's balance is more than 19:
  13. give 32 grass to player
  14. remove 20 from player's balance
  15. command /buydirt:
  16. trigger:
  17. if player's balance is less than 4:
  18. send "&e(!) You do not have enough money to buy that"
  19. if player's balance is more than 4:
  20. give 32 dirt to player
  21. remove 5 from player's balance
  22. command /buystonebrick:
  23. trigger:
  24. if player's balance is less than 4:
  25. send "&e(!) You do not have enough money to buy that"
  26. if player's balance is more than 4:
  27. give 32 98 to player
  28. remove 5 from player's balance
  29. command /buyoakplanks:
  30. trigger:
  31. if player's balance is less than 4:
  32. send "&e(!) You do not have enough money to buy that"
  33. if player's balance is more than 4:
  34. give 32 oak_planks to player
  35. remove 5 from player's balance
  36. command /buyseeds:
  37. trigger:
  38. if player's balance is less than 19:
  39. send "&e(!) You do not have enough money to buy that"
  40. if player's balance is more than 19:
  41. give 32 seeds to player
  42. remove 20 from player's balance
  43.  
  44. command /shop:
  45. trigger:
  46. close player's inventory
  47. wait 1 tick
  48. open chest with 6 rows named " &0&nPlayer Shop" to player
  49. format slot 0 of player with 1 black glass named "" to be unstealable
  50. format slot 1 of player with 1 black glass named "" to be unstealable
  51. format slot 2 of player with 1 black glass named "" to be unstealable
  52. format slot 3 of player with 1 black glass named "" to be unstealable
  53. format slot 4 of player with 1 black glass named "" to be unstealable
  54. format slot 5 of player with 1 black glass named "" to be unstealable
  55. format slot 6 of player with 1 black glass named "" to be unstealable
  56. format slot 7 of player with 1 black glass named "" to be unstealable
  57. format slot 8 of player with 1 black glass named "" to be unstealable
  58. format slot 9 of player with 1 black glass named "" to be unstealable
  59. format slot 27 of player with 1 black glass named "" to be unstealable
  60. format slot 18 of player with 1 black glass named "" to be unstealable
  61. format slot 36 of player with 1 black glass named "" to be unstealable
  62. format slot 17 of player with 1 black glass named "" to be unstealable
  63. format slot 35 of player with 1 black glass named "" to be unstealable
  64. format slot 26 of player with 1 black glass named "" to be unstealable
  65. format slot 44 of player with 1 black glass named "" to be unstealable
  66. format slot 45 of player with 1 black glass named "" to be unstealable
  67. format slot 46 of player with 1 black glass named "" to be unstealable
  68. format slot 47 of player with 1 black glass named "" to be unstealable
  69. format slot 48 of player with 1 black glass named "" to be unstealable
  70. format slot 49 of player with 1 black glass named "" to be unstealable
  71. format slot 50 of player with 1 black glass named "" to be unstealable
  72. format slot 51 of player with 1 black glass named "" to be unstealable
  73. format slot 52 of player with 1 black glass named "" to be unstealable
  74. format slot 53 of player with 1 black glass named "" to be unstealable
  75. format slot 20 of player with 1 book named "&6&lBuy Shop &e(Click to open)" to run [make player execute command "/buyshop"]
  76. format slot 24 of player with 1 book named "&6&lSell Shop &e(Click to open)" to run [make player execute command "/sellshop"]
  77.  
  78. command /buyshop:
  79. trigger:
  80. close player's inventory
  81. wait 1 tick
  82. open chest with 6 rows named " &0&nPlayer Buy Shop" to player
  83. format slot 0 of player with 1 black glass named "" to be unstealable
  84. format slot 1 of player with 1 black glass named "" to be unstealable
  85. format slot 2 of player with 1 black glass named "" to be unstealable
  86. format slot 3 of player with 1 black glass named "" to be unstealable
  87. format slot 4 of player with 1 black glass named "" to be unstealable
  88. format slot 5 of player with 1 black glass named "" to be unstealable
  89. format slot 6 of player with 1 black glass named "" to be unstealable
  90. format slot 7 of player with 1 black glass named "" to be unstealable
  91. format slot 8 of player with 1 black glass named "" to be unstealable
  92. format slot 9 of player with 1 black glass named "" to be unstealable
  93. format slot 18 of player with 1 black_banner_item named "&7&l← Previous Page" to run [make player execute "/shop"]
  94. format slot 27 of player with 1 black_banner_item named "&7&l← Previous Page" to run [make player execute "/shop"]
  95. format slot 36 of player with 1 black glass named "" to be unstealable
  96. format slot 17 of player with 1 black glass named "" to be unstealable
  97. format slot 26 of player with 1 black_banner_item named "&7&l→ Next Page" to close
  98. format slot 35 of player with 1 black_banner_item named "&7&l→ Next Page" to close
  99. format slot 44 of player with 1 black glass named "" to be unstealable
  100. format slot 45 of player with 1 black glass named "" to be unstealable
  101. format slot 46 of player with 1 black glass named "" to be unstealable
  102. format slot 47 of player with 1 black glass named "" to be unstealable
  103. format slot 48 of player with 1 black glass named "" to be unstealable
  104. format slot 49 of player with 1 black glass named "" to be unstealable
  105. format slot 50 of player with 1 black glass named "" to be unstealable
  106. format slot 51 of player with 1 black glass named "" to be unstealable
  107. format slot 52 of player with 1 black glass named "" to be unstealable
  108. format slot 53 of player with 1 black glass named "" to be unstealable
  109. format slot 10 of player with 32 stone named "&6Stone &e(Click to buy)" with lore "||&ePrice: &f$10 per 32||&eClick to purchase||&7" to run [make player execute "/buystone"]
  110. format slot 11 of player with 32 grass named "&6Grass &e(Click to buy)" with lore "||&ePrice: &f$20 per 32||&eClick to purchase||&7" to run [make player execute "/buygrass"]
  111. format slot 12 of player with 32 dirt named "&6Dirt &e(Click to buy)" with lore "||&ePrice: &f$5 per 32||&eClick to purchase||&7" to run [make player execute "/buydirt"]
  112. format slot 13 of player with 32 98 named "&6Stone Brick &e(Click to buy)" with lore "||&ePrice: &f$5 per 32||&eClick to purchase||&7" to run [make player execute "/buystonebrick"]
  113. format slot 14 of player with 32 oak_planks named "&6Oak Planks &e(Click to buy)" with lore "||&ePrice: &f$5 per 32||&eClick to purchase||&7" to run [make player execute "/buyoakplanks"]
  114. format slot 15 of player with 32 seeds named "&6Seeds &e(Click to buy)" with lore "||&ePrice: &f$20 per 32||&eClick to purchase||&7" to run [make player execute "/buyseeds"]
Advertisement
Add Comment
Please, Sign In to add comment