Advertisement
Guest User

asd

a guest
Mar 24th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.39 KB | None | 0 0
  1. function blockshop(p: player):
  2. open chest with 6 rows named "&l$ Shop $" to {_p}
  3. format gui slot 0 of {_p} with gray glass named "&f"
  4. format gui slot 1 of {_p} with gray glass named "&f"
  5. format gui slot 2 of {_p} with gray glass named "&f"
  6. format gui slot 3 of {_p} with gray glass named "&f"
  7. format gui slot 4 of {_p} with gray glass named "&f"
  8. format gui slot 5 of {_p} with gray glass named "&f"
  9. format gui slot 6 of {_p} with gray glass named "&f"
  10. format gui slot 7 of {_p} with gray glass named "&f"
  11. format gui slot 8 of {_p} with gray glass named "&f"
  12. format gui slot 9 of {_p} with gray glass named "&f"
  13. format gui slot 45 of {_p} with gray glass named "&f"
  14. format gui slot 46 of {_p} with gray glass named "&f"
  15. format gui slot 47 of {_p} with gray glass named "&f"
  16. format gui slot 48 of {_p} with gray glass named "&f"
  17. format gui slot 50 of {_p} with gray glass named "&f"
  18. format gui slot 51 of {_p} with gray glass named "&f"
  19. format gui slot 52 of {_p} with gray glass named "&f"
  20. format gui slot 53 of {_p} with gray glass named "&f"
  21. format gui slot 54 of {_p} with gray glass named "&f"
  22. format gui slot 18 of {_p} with gray glass named "&f"
  23. format gui slot 17 of {_p} with gray glass named "&f"
  24. format gui slot 27 of {_p} with gray glass named "&f"
  25. format gui slot 26 of {_p} with gray glass named "&f"
  26. format gui slot 36 of {_p} with gray glass named "&f"
  27. format gui slot 35 of {_p} with gray glass named "&f"
  28. format gui slot 44 of {_p} with gray glass named "&f"
  29.  
  30. format gui slot 49 of {_p} with arrow named "&cBack!" to run:
  31. mainshop(player)
  32.  
  33. format gui slot 10 of {_p} with grass named "&eGrass &6&l(x16)" with lore "&f||&7Price: &e$750||&f" to run:
  34. if {_p}'s balance is more than 749:
  35. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  36. give {_p} 16 grass
  37. remove 750 from {_p}'s balance
  38. else:
  39. close player's inventory
  40. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  41.  
  42. format gui slot 11 of {_p} with dirt named "&eDirt &6&l(x16)" with lore "&f||&7Price: &e$250||&f" to run:
  43. if {_p}'s balance is more than 249:
  44. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  45. give {_p} 16 dirt
  46. remove 250 from {_p}'s balance
  47. else:
  48. close player's inventory
  49. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  50.  
  51. format gui slot 12 of {_p} with stone named "&eStone &6&l(x8)" with lore "&f||&7Price: &e$500||&f" to run:
  52. if {_p}'s balance is more than 499:
  53. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  54. give {_p} 8 stone
  55. remove 500 from {_p}'s balance
  56. else:
  57. close player's inventory
  58. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  59.  
  60. format gui slot 13 of {_p} with cobble named "&eCobblestone &6&l(x16)" with lore "&f||&7Price: &e$300||&f" to run:
  61. if {_p}'s balance is more than 299:
  62. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  63. give {_p} 16 cobble
  64. remove 300 from {_p}'s balance
  65. else:
  66. close player's inventory
  67. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  68.  
  69. format gui slot 14 of {_p} with oak_wooden_log named "&eLog &6&l(x4)" with lore "&f||&7Price: &e$500||&f" to run:
  70. if {_p}'s balance is more than 499:
  71. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  72. give {_p} 4 oak_wooden_log
  73. remove 500 from {_p}'s balance
  74. else:
  75. close player's inventory
  76. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  77.  
  78. format gui slot 15 of {_p} with oak_wooden_plank named "&eOak Wood &6&l(x16)" with lore "&f||&7Price: &e$500||&f" to run:
  79. if {_p}'s balance is more than 499:
  80. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  81. give {_p} 16 oak_wooden_plank
  82. remove 500 from {_p}'s balance
  83. else:
  84. close player's inventory
  85. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  86.  
  87. format gui slot 16 of {_p} with sand named "&eSand &6&l(x4)" with lore "&f||&7Price: &e$250||&f" to run:
  88. if {_p}'s balance is more than 249:
  89. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  90. give {_p} 4 sand
  91. remove 250 from {_p}'s balance
  92. else:
  93. close player's inventory
  94. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  95.  
  96. format gui slot 19 of {_p} with packed_ice named "&ePacked Ice &6&l(x8)" with lore "&f||&7Price: &e$500||&f" to run:
  97. if {_p}'s balance is more than 499:
  98. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  99. give {_p} 8 packed_ice
  100. remove 500 from {_p}'s balance
  101. else:
  102. close player's inventory
  103. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  104. format gui slot 20 of {_p} with ice named "&eIce &6&l(x4)" with lore "&f||&7Price: &e$300||&f" to run:
  105. if {_p}'s balance is more than 299:
  106. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  107. give {_p} 4 ice
  108. remove 300 from {_p}'s balance
  109. else:
  110. close player's inventory
  111. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  112. format gui slot 21 of {_p} with soul_sand named "&eSoul Sand &6&l(x1)" with lore "&f||&7Price: &e$300||&f" to run:
  113. if {_p}'s balance is more than 299:
  114. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  115. give {_p} 1 soul_sand
  116. remove 300 from {_p}'s balance
  117. else:
  118. close player's inventory
  119. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  120. format gui slot 22 of {_p} with quartz_block named "&eQuartz Block &6&l(x4)" with lore "&f||&7Price: &e$2500||&f" to run:
  121. if {_p}'s balance is more than 2499:
  122. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  123. give {_p} 4 quartz_block
  124. remove 2500 from {_p}'s balance
  125. else:
  126. close player's inventory
  127. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  128. format gui slot 23 of {_p} with plain_glass_block named "&eGlass &6&l(x4)" with lore "&f||&7Price: &e$250||&f" to run:
  129. if {_p}'s balance is more than 249:
  130. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  131. give {_p} 4 plain_glass_block
  132. remove 250 from {_p}'s balance
  133. else:
  134. close player's inventory
  135. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  136. format gui slot 24 of {_p} with bookshelf named "&eBookshelf &6&l(x4)" with lore "&f||&7Price: &e$500||&f" to run:
  137. if {_p}'s balance is more than 499:
  138. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  139. give {_p} 4 bookshelf
  140. remove 500 from {_p}'s balance
  141. else:
  142. close player's inventory
  143. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  144. format gui slot 25 of {_p} with obsidian named "&eObsidian &6&l(x1)" with lore "&f||&7Price: &e$500||&f" to run:
  145. if {_p}'s balance is more than 499:
  146. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  147. give {_p} 1 obsidian
  148. remove 500 from {_p}'s balance
  149. else:
  150. close player's inventory
  151. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  152. format gui slot 28 of {_p} with stone_brick named "&eStonebrick &6&l(x16)" with lore "&f||&7Price: &e$1000||&f" to run:
  153. if {_p}'s balance is more than 999:
  154. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  155. give {_p} 16 stone_brick
  156. remove 1000 from {_p}'s balance
  157. else:
  158. close player's inventory
  159. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  160. format gui slot 29 of {_p} with glowstone named "&eGlowstone &6&l(x4)" with lore "&f||&7Price: &e$500||&f" to run:
  161. if {_p}'s balance is more than 499:
  162. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  163. give {_p} 4 glowstone
  164. remove 500 from {_p}'s balance
  165. else:
  166. close player's inventory
  167. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  168. format gui slot 30 of {_p} with white wool named "&eWool &6&l(x4)" with lore "&f||&7Price: &e$100||&f" to run:
  169. if {_p}'s balance is more than 99:
  170. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  171. give {_p} 4 white wool
  172. remove 100 from {_p}'s balance
  173. else:
  174. close player's inventory
  175. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  176. format gui slot 31 of {_p} with end_stone named "&eEndstone &6&l(x4)" with lore "&f||&7Price: &e$500||&f" to run:
  177. if {_p}'s balance is more than 499:
  178. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  179. give {_p} 4 end_stone
  180. remove 500 from {_p}'s balance
  181. else:
  182. close player's inventory
  183. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  184. format gui slot 32 of {_p} with mossy_cobble named "&eMossy Cobblestone &6&l(x4)" with lore "&f||&7Price: &e$500||&f" to run:
  185. if {_p}'s balance is more than 499:
  186. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  187. give {_p} 4 mossy_cobble
  188. remove 500 from {_p}'s balance
  189. else:
  190. close player's inventory
  191. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  192. format gui slot 33 of {_p} with magma_block named "&eMagma Block &6&l(x1)" with lore "&f||&7Price: &e$1000||&f" to run:
  193. if {_p}'s balance is more than 999:
  194. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  195. give {_p} 1 magma_block
  196. remove 1000 from {_p}'s balance
  197. else:
  198. close player's inventory
  199. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  200. format gui slot 34 of {_p} with netherrack named "&eNetherrack &6&l(x16)" with lore "&f||&7Price: &e$500||&f" to run:
  201. if {_p}'s balance is more than 499:
  202. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  203. give {_p} 16 netherrack
  204. remove 500 from {_p}'s balance
  205. else:
  206. close player's inventory
  207. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  208. format gui slot 37 of {_p} with nether_brick_block named "&eNetherbrick &6&l(x4)" with lore "&f||&7Price: &e$500||&f" to run:
  209. if {_p}'s balance is more than 499:
  210. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  211. give {_p} 4 nether_brick_block
  212. remove 500 from {_p}'s balance
  213. else:
  214. close player's inventory
  215. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  216. format gui slot 38 of {_p} with brick_block named "&eBrick &6&l(x4)" with lore "&f||&7Price: &e$300||&f" to run:
  217. if {_p}'s balance is more than 299:
  218. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  219. give {_p} 4 brick_block
  220. remove 300 from {_p}'s balance
  221. else:
  222. close player's inventory
  223. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  224. format gui slot 39 of {_p} with sea_lantern named "&eSea Lantern &6&l(x1)" with lore "&f||&7Price: &e$100||&f" to run:
  225. if {_p}'s balance is more than 99:
  226. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  227. give {_p} 1 sea_Lantern
  228. remove 100 from {_p}'s balance
  229. else:
  230. close player's inventory
  231. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  232. format gui slot 40 of {_p} with prismarine named "&ePrismarine &6&l(x4)" with lore "&f||&7Price: &e$500||&f" to run:
  233. if {_p}'s balance is more than 499:
  234. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  235. give {_p} 4 Prismarine
  236. remove 500 from {_p}'s balance
  237. else:
  238. close player's inventory
  239. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  240. format gui slot 41 of {_p} with Dark_prismarine named "&eDark Prismarine &6&l(x4)" with lore "&f||&7Price: &e$500||&f" to run:
  241. if {_p}'s balance is more than 499:
  242. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  243. give {_p} 4 Dark_Prismarine
  244. remove 500 from {_p}'s balance
  245. else:
  246. close player's inventory
  247. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  248. format gui slot 42 of {_p} with sponge named "&eSponge &6&l(x1)" with lore "&f||&7Price: &e$750||&f" to run:
  249. if {_p}'s balance is more than 749:
  250. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  251. give {_p} 1 sponge
  252. remove 750 from {_p}'s balance
  253. else:
  254. close player's inventory
  255. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  256. format gui slot 43 of {_p} with clay_block named "&eClay &6&l(x4)" with lore "&f||&7Price: &e$400||&f" to run:
  257. if {_p}'s balance is more than 399:
  258. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  259. give {_p} 4 clay_block
  260. remove 500 from {_p}'s balance
  261. else:
  262. close player's inventory
  263. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  264. format gui slot 44 of {_p} with orange_wool named "&eOrange wool &6&l(x4)" with lore "&f||&7Price: &e$100||&f" to run:
  265. if {_p}'s balance is more than 99:
  266. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  267. give {_p} 4 orange_wool
  268. remove 100 from {_p}'s balance
  269. else:
  270. close player's inventory
  271. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  272. format gui slot 45 of {_p} with magenta_wool named "&eMagenta wool &6&l(x4)" with lore "&f||&7Price: &e$100||&f" to run:
  273. if {_p}'s balance is more than 99:
  274. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  275. give {_p} 4 magenta_wool
  276. remove 100 from {_p}'s balance
  277. else:
  278. close player's inventory
  279. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  280. format gui slot 46 of {_p} with light_blue_wool named "&eLight blue wool &6&l(x4)" with lore "&f||&7Price: &e$100||&f" to run:
  281. if {_p}'s balance is more than 99:
  282. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  283. give {_p} 4 light_blue_wool
  284. remove 100 from {_p}'s balance
  285. else:
  286. close player's inventory
  287. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
  288. format gui slot 47 of {_p} with yellow_wool named "&eYellow wool &6&l(x4)" with lore "&f||&7Price: &e$100||&f" to run:
  289. if {_p}'s balance is more than 99:
  290. play sound "entity.experience_orb.pickup" with volume 10 and pitch 0 at {_p} for {_p}
  291. give {_p} 4 yellow_wool
  292. remove 100 from {_p}'s balance
  293. else:
  294. close player's inventory
  295. send "&e&l(&6&lNEVUS&e&l) &eYou don't have enough money!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement