Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.01 KB | None | 0 0
  1. command /shop:
  2. trigger:
  3. create a gui with virtual chest with 5 rows named "&8Shop":
  4. make gui slot 9 with grass named "&aBlocks":
  5. blocks(player)
  6. make gui slot 11 with cooked beef named "&6Food":
  7. food(player)
  8. make gui slot 13 with diamond pickaxe named "&9Tools":
  9. tools(player)
  10. make gui slot 15 with redstone dust named "&cRedstone":
  11. redstone(player)
  12. make gui slot 17 with spawner named "&5Spawners":
  13. spawners(player)
  14. make gui slot 29 with wheat named "&eFarming":
  15. farming(player)
  16. make gui slot 33 with lava bucket named "&dMisc":
  17. misc(player)
  18. open last gui to player
  19.  
  20. function farming(p: player):
  21. create a gui with virtual chest with 5 rows named "&8Shop &7> &eFarming":
  22. make gui slot 40 with nether star named "&cGo Back":
  23. execute player command "/shop"
  24. open last gui to {_p}
  25.  
  26. function misc(p: player):
  27. create a gui with virtual chest with 5 rows named "&8Shop &7> &dMisc":
  28. make gui slot 40 with nether star named "&cGo Back":
  29. execute player command "/shop"
  30. open last gui to {_p}
  31.  
  32. function blocks(p: player):
  33. create a gui with virtual chest with 5 rows named "&8Shop &7> &aBlocks":
  34. make gui slot 0 with oak log named "&7Oak Log &6x16" with lore "&a$250":
  35. if {_p}'s balance is greater than or equal to 250:
  36. remove 250 from {_p}'s balance
  37. give {_p} 16 oak log
  38. send "&aBought &7Oak Log &6x16" to {_p}
  39. make gui slot 1 with spruce log named "&7Spruce Log &6x16" with lore "&a$250":
  40. if {_p}'s balance is greater than or equal to 250:
  41. remove 250 from {_p}'s balance
  42. give {_p} 16 spruce log
  43. send "&aBought &7Spruce Log &6x16" to {_p}
  44. make gui slot 2 with birch log named "&7Birch Log &6x16" with lore "&a$250":
  45. if {_p}'s balance is greater than or equal to 250:
  46. remove 250 from {_p}'s balance
  47. give {_p} 16 birch log
  48. send "&aBought &7Birch Log &6x16" to {_p}
  49. make gui slot 3 with jungle log named "&7Jungle Log &6x16" with lore "&a$250":
  50. if {_p}'s balance is greater than or equal to 250:
  51. remove 250 from {_p}'s balance
  52. give {_p} 16 jungle log
  53. send "&aBought &7Jungle Log &6x16" to {_p}
  54. make gui slot 4 with acacia log named "&7Acacia Log &6x16" with lore "&a$250":
  55. if {_p}'s balance is greater than or equal to 250:
  56. remove 250 from {_p}'s balance
  57. give {_p} 16 acacia log
  58. send "&aBought &7Acacia Log &6x16" to {_p}
  59. make gui slot 5 with dark oak log named "&7Dark Oak Log &6x16" with lore "&a$250":
  60. if {_p}'s balance is greater than or equal to 250:
  61. remove 250 from {_p}'s balance
  62. give {_p} 16 dark oak log
  63. send "&aBought &7Dark Oak Log &6x16" to {_p}
  64. make gui slot 6 with glowstone named "&7Glowstone &6x4" with lore "&a$250":
  65. if {_p}'s balance is greater than or equal to 250:
  66. remove 250 from {_p}'s balance
  67. give {_p} 4 glowstone
  68. send "&aBought &7Glowstone &6x4" to {_p}
  69. make gui slot 7 with ice named "&7Ice &6x16" with lore "&a$1600":
  70. if {_p}'s balance is greater than or equal to 1600:
  71. remove 1600 from {_p}'s balance
  72. give {_p} 16 ice
  73. send "&aBought &7Ice &6x16" to {_p}
  74. make gui slot 8 with packed ice named "&7Packed Ice &6x16" with lore "&a$3500":
  75. if {_p}'s balance is greater than or equal to 3500:
  76. remove 3500 from {_p}'s balance
  77. give {_p} 16 packed ice
  78. send "&aBought &7Packed Ice &6x16" to {_p}
  79. make gui slot 9 with glass named "&7Glass &6x16" with lore "&a$100":
  80. if {_p}'s balance is greater than or equal to 100:
  81. remove 100 from {_p}'s balance
  82. give {_p} 16 glass
  83. send "&aBought &7Glass &6x16" to {_p}
  84. make gui slot 10 with dirt named "&7Dirt &6x16" with lore "&a$50":
  85. if {_p}'s balance is greater than or equal to 50:
  86. remove 50 from {_p}'s balance
  87. give {_p} 16 dirt
  88. send "&aBought &7Dirt &6x16" to {_p}
  89. make gui slot 11 with stone named "&7Stone &6x16" with lore "&a$150":
  90. if {_p}'s balance is greater than or equal to 150:
  91. remove 150 from {_p}'s balance
  92. give {_p} 16 stone
  93. send "&aBought &7Stone &6x16" to {_p}
  94. make gui slot 12 with cobble named "&7Cobblestone &6x16" with lore "&a$75":
  95. if {_p}'s balance is greater than or equal to 75:
  96. remove 75 from {_p}'s balance
  97. give {_p} 16 cobble
  98. send "&aBought &7Cobblestone &6x16" to {_p}
  99. make gui slot 13 with sand named "&7Sand &6x16" with lore "&a$75":
  100. if {_p}'s balance is greater than or equal to 75:
  101. remove 75 from {_p}'s balance
  102. give {_p} 16 sand
  103. send "&aBought &7Sand &6x16" to {_p}
  104. make gui slot 14 with sandstone named "&7Sandstone &6x16" with lore "&a$150":
  105. if {_p}'s balance is greater than or equal to 150:
  106. remove 150 from {_p}'s balance
  107. give {_p} 16 sandstone
  108. send "&aBought &7Sandstone &6x16" to {_p}
  109. make gui slot 14 with wool named "&7Wool &6x16" with lore "&a$250":
  110. if {_p}'s balance is greater than or equal to 250:
  111. remove 250 from {_p}'s balance
  112. give {_p} 16 wool
  113. send "&aBought &7Wool &6x16" to {_p}
  114. make gui slot 40 with nether star named "&cGo Back":
  115. execute player command "/shop"
  116. open last gui to {_p}
  117.  
  118. function food(p: player):
  119. create a gui with virtual chest with 5 rows named "&8Shop &7> &6Food":
  120. make gui slot 40 with nether star named "&cGo Back":
  121. execute player command "/shop"
  122. open last gui to {_p}
  123.  
  124. function tools(p: player):
  125. create a gui with virtual chest with 5 rows named "&8Shop &7> &9Tools":
  126. make gui slot 40 with nether star named "&cGo Back":
  127. execute player command "/shop"
  128. open last gui to {_p}
  129.  
  130. function redstone(p: player):
  131. create a gui with virtual chest with 5 rows named "&8Shop &7> &cRedstone":
  132. make gui slot 0 with piston named "&7Piston &6x4" with lore "&a$500":
  133. if {_p}'s balance is greater than or equal to 500:
  134. remove 500 from {_p}'s balance
  135. give {_p} 4 piston
  136. send "&aBought &7Piston &6x4" to {_p}
  137. make gui slot 1 with sticky piston named "&7Sticky Piston &6x4" with lore "&a$750":
  138. if {_p}'s balance is greater than or equal to 750:
  139. remove 750 from {_p}'s balance
  140. give {_p} 4 sticky piston
  141. send "&aBought &7Sticky Piston &6x4" to {_p}
  142. make gui slot 2 with hopper named "&7Hopper &6x1" with lore "&a$10000":
  143. if {_p}'s balance is greater than or equal to 10000:
  144. remove 10000 from {_p}'s balance
  145. give {_p} 1 hopper
  146. send "&aBought &7Hopper &6x1" to {_p}
  147. make gui slot 3 with observer named "&7Observer &6x4" with lore "&a$2000":
  148. if {_p}'s balance is greater than or equal to 2000:
  149. remove 2000 from {_p}'s balance
  150. give {_p} 4 observer
  151. send "&aBought &7Observer &6x4" to {_p}
  152. make gui slot 4 with redstone torch named "&7Redstone Torch &6x16" with lore "&a$100":
  153. if {_p}'s balance is greater than or equal to 100:
  154. remove 100 from {_p}'s balance
  155. give {_p} 16 redstone torch
  156. send "&aBought &7Redstone Torch &6x16" to {_p}
  157. make gui slot 5 with repeater named "&7Repeater &6x16" with lore "&a$500":
  158. if {_p}'s balance is greater than or equal to 500:
  159. remove 500 from {_p}'s balance
  160. give {_p} 16 repeater
  161. send "&aBought &7Repeater &6x16" to {_p}
  162. make gui slot 6 with comparator named "&7Comparator &6x4" with lore "&a$300":
  163. if {_p}'s balance is greater than or equal to 300:
  164. remove 300 from {_p}'s balance
  165. give {_p} 4 comparator
  166. send "&aBought &7Comparator &6x4" to {_p}
  167. make gui slot 40 with nether star named "&cGo Back":
  168. execute player command "/shop"
  169. open last gui to {_p}
  170.  
  171. function spawners(p: player):
  172. create a gui with virtual chest with 5 rows named "&8Shop &7> &5Spawners":
  173. make gui slot 40 with nether star named "&cGo Back":
  174. execute player command "/shop"
  175. open last gui to {_p}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement