NoHacksJustACow

Farm Shop?

Jan 28th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.70 KB | None | 0 0
  1. options:
  2. cblocks: &c(&6!&c) &7Closing Blocks...
  3. oblocks: &c(&6!&c) &7Opening Blocks...
  4. cmenu: &c(&6!&c) &7Closing Menu...
  5. omenu: &c(&6!&c) &7Opening Menu...
  6. credstone: &c(&6!&c) &7Closing Redstone...
  7. oredstone: &c(&6!&c) &7Opening Redstone...
  8. cfarming: &c(&6!&c) &7Closing Farming...
  9. ofarming: &c(&6!&c) &7Opening Farming...
  10. cmisc: &c(&6!&c) &7Closing Misc...
  11. omisc: &c(&6!&c) &7Opening Misc...
  12. ctools: &c(&6!&c) &7Closing Tools...
  13. otools: &c(&6!&c) &7Opening Tools...
  14. cspawners: &c(&6!&c) &7Closing Spawners...
  15. ospawners: &c(&6!&c) &7Opening Spawners...
  16. cperms: &c(&6!&c) &7Closing Perms...
  17. operms: &c(&6!&c) &7Opening Perms...
  18. sellperm: {@server}.sell
  19. sellhandperm: {@server}.sell.hand
  20. permmsg: &cError: &7Sorry, you don't have enough permission for this.
  21.  
  22. on script load:
  23. create a gui with id "SHOP" with virtual chest with 1 rows named "&cShop":
  24. make gui slot 8 with slimeball named "&c&lClick » Close":
  25. close player's inventory
  26. play sound "ENTITY_CAT_HISS" with volume 1 with pitch 1 at player for player
  27. send "{@cmenu}"
  28. make gui slot 0 with grass named "&cBlocks":
  29. send "{@oblocks}"
  30. open gui "BLOCKS" to player
  31. make gui slot 1 with redstone named "&cRedstone":
  32. send "{@oredstone}"
  33. open gui "REDSTONE" to player
  34. make gui slot 2 with sugar_cane_item named "&cFarming":
  35. send "{@ofarming}"
  36. open gui "FARMING" to player
  37. make gui slot 3 with diamond_hoe named "&cTools":
  38. send "{@otools}"
  39. open gui "TOOLS" to player
  40. make gui slot 4 with mob_spawner named "&cSpawners":
  41. send "{@ospawners}"
  42. open gui "SPAWNERS" to player
  43. make gui slot 5 with papper named "&cPermissions":
  44. send "{@operms}"
  45. open gui "Permissions" to player
  46. create a gui with id "BLOCKS" with virtual chest with 6 rows named "&cBlocks":
  47. make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 36, 44, 53, 52, 51, 50, 48, 47, 46, 45 and 35 with black glass pane named " "
  48. make gui slot 49 with slimeball named "&c&lClick » Back":
  49. open gui "SHOP" to player
  50. send "{@cblocks}"
  51. make gui slot 10 with dirt named "&7Dirt" with lore "&3$250 &7For 8":
  52. Shop(player, {cost.%player%}, {item.%player%}, {itemamount.%player%})
  53. make gui slot 11 with stone named "&7Stone" with lore "&3$500 &7For 16":
  54. Shop(player, {stone.%player%}, {stone1.%player%}, {stone2.%player%})
  55. make gui slot 12 with stone_brick named "&7Stone Brick" with lore "&3$750 &7For 16":
  56. Shop(player, {stonebrick.%player%}, {stonebrick1.%player%}, {stonebrick2.%player%})
  57. make gui slot 13 with granite named "&7Granite" with lore "&3$250 &7For 16":
  58. Shop(player, {granite.%player%}, {granite1.%player%}, {granite2.%player%})
  59. make gui slot 14 with andesite named "&7Andesite" with lore "&3$250 &7For 16":
  60. Shop(player, {andesite.%player%}, {andesite1.%player%}, {andesite2.%player%})
  61. make gui slot 15 with oak_log named "&7Oak Log" with lore "&3$250 &7For 8":
  62. Shop(player, {oaklog.%player%}, {oaklog1.%player%}, {oaklog2.%player%})
  63. make gui slot 16 with spruce_log named "&7Spruce Log" with lore "&3$250 &7For 8":
  64. Shop(player, {sprucelog.%player%}, {sprucelog1.%player%}, {sprucelog2.%player%})
  65. make gui slot 19 with birch_log named "&7Birch Log" with lore "&3$250 &7For 8":
  66. Shop(player, {BirchLog.%player%}, {BirchLog1.%player%}, {BirchLog2.%player%})
  67. make gui slot 20 with Dark_oak_log named "&7Dark Oak log" with lore "&3$250 &7For 8":
  68. Shop(player, {DarkOakLog.%player%}, {DarkOakLog1.%player%}, {DarkOakLog2.%player%})
  69. make gui slot 21 with Quartz_block named "&7Quartz Block" with lore "&3$1000 &7For 16":
  70. Shop(player, {QuartzBlock.%player%}, {QuartzBlock1.%player%}, {QuartzBlock2.%player%})
  71. make gui slot 22 with cobble_stone named "&7Cobblestone" with lore "&3$375 &7For 16":
  72. Shop(player, {Cobblestone.%player%}, {Cobblestone1.%player%}, {Cobblestone2.%player%})
  73. make gui slot 23 with netherrack named "&7Netherrack" with lore "&3$125 &7For 16":
  74. Shop(player, {netherrack.%player%}, {netherrack1.%player%}, {netherrack2.%player%})
  75. make gui slot 24 with sand named "&7Sand" with lore "&3$750 &7For 16":
  76. Shop(player, {sand.%player%}, {sand1.%player%}, {sand2.%player%})
  77. make gui slot 25 with ice named "&7Ice" with lore "&3$750 &7For 16":
  78. Shop(player, {ice.%player%}, {ice1.%player%}, {ice2.%player%})
  79. make gui slot 28 with packed_ice named "&7Pakced Ice" with lore "&3$1500 &7For 16":
  80. Shop(player, {packedice.%player%}, {packedice1.%player%}, {packedice2.%player%})
  81. make gui slot 29 with soul_sand named "&7Soulsand" with lore "&3$500 &7For 8":
  82. Shop(player, {soulsand.%player%}, {soulsand1.%player%}, {soulsand2.%player%})
  83. make gui slot 30 with plain_glass_block named "&7Glass" with lore "&3$500 &7For 16":
  84. Shop(player, {plainglass.%player%}, {plainglass1.%player%}, {plainglass2.%player%})
  85. make gui slot 31 with fence named "&7Fence" with lore "&3$250 &7For 8":
  86. Shop(player, {fence.%player%}, {fence1.%player%}, {fence2.%player%})
  87. make gui slot 32 with slime_block named "&7Slime Block" with lore "&3$125 &7For 8":
  88. Shop(player, {slimeblock.%player%}, {slimeblock1.%player%}, {slimeblock2.%player%})
  89. make gui slot 33 with string named "&7String" with lore "&3$75 &7For 8":
  90. Shop(player, {string.%player%}, {string1.%player%}, {string2.%player%})
  91. create a gui with id "REDSTONE" with virtual chest with 6 rows named "&cRedstone":
  92. make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 36, 44, 53, 52, 51, 50, 48, 47, 46, 45, and 35 with black glass pane named " "
  93. make gui slot 49 with slimeball named "&c&lClick » Back":
  94. open gui "SHOP" to player
  95. send "{@credstone}"
  96. make gui slot 10 with redstone named "&7Redstone" with lore "&3$250 &7For 16":
  97. Shop(player, {redstone.%player%}, {redstone1.%player%}, {redstone2.%player%})
  98. make gui slot 11 with redstone_repeater_item named "&7Redstone Repeater" with lore "&3$200 &7For 8":
  99. Shop(player, {redstonerepeater.%player%}, {redstonerepeater1.%player%}, {redstonerepeater2.%player%})
  100. make gui slot 12 with piston_base named "&7Piston" with lore "&3$250 &7For 8||&7&oThis may show a sticky piston but it will give a normal piston":
  101. Shop(player, {piston.%player%}, {piston1.%player%}, {piston2.%player%})
  102. make gui slot 13 with sticky_piston_block named "&7Sticky Piston" with lore "&3$250 &7For 8||&7&oThis may show a piston but it will give a sticky piston":
  103. Shop(player, {spiston.%player%}, {spiston1.%player%}, {spiston2.%player%})
  104. make gui slot 14 with observer named "&7Observer" with lore "&3$2500 &7For 1":
  105. Shop(player, {observer.%player%}, {observer1.%player%}, {observer2.%player%})
  106. make gui slot 15 with Lava_bucket named "&7Lava" with lore "&3$750 &7For 1":
  107. Shop(player, {lava.%player%}, {lava1.%player%}, {lava2.%player%})
  108. make gui slot 16 with redstone_comparator_item named "&7Redstone Comparator" with lore "&3$200 &7For 6":
  109. Shop(player, {Redstonec.%player%}, {Redstonec1.%player%}, {Redstonec2.%player%})
  110. make gui slot 19 with hopper named "&7Hopper" with lore "&3$5000 &7For 1":
  111. Shop(player, {hopper.%player%}, {hopper1.%player%}, {hopper2.%player%})
  112. create a gui with id "FARMING" with virtual chest with 6 rows named "&cFarming":
  113. make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 36, 44, 53, 52, 51, 50, 48, 47, 46, 45, and 35 with black glass pane named " "
  114. make gui slot 49 with slimeball named "&c&lClick » Back":
  115. open gui "SHOP" to player
  116. send "{@cfarming}"
  117. make gui slot 10 with sugar_cane_item named "&7Sugarcane" with lore "&3$1750 &7For 8":
  118. Shop(player, {sugarcane.%player%}, {sugarcane1.%player%}, {sugarcane2.%player%})
  119. make gui slot 11 with seeds named "&7Seeds " with lore "&3$100 &7For 16":
  120. Shop(player, {seeds.%player%}, {seeds1.%player%}, {seeds2.%player%})
  121. make gui slot 12 with cactus named "&7Cactus " with lore "&3$2000 &7For 16":
  122. Shop(player, {cactus.%player%}, {cactus1.%player%}, {cactus2.%player%})
  123. make gui slot 13 with pumpkin_seeds named "&7Pumpkin Seeds " with lore "&3$1500 &7For 16":
  124. Shop(player, {cactus.%player%}, {cactus1.%player%}, {cactus2.%player%})
  125. create a gui with id "TOOLS" with virtual chest with 6 rows named "&cTools":
  126. make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 36, 44, 53, 52, 51, 50, 48, 47, 46, 45, and 35 with black glass pane named " "
  127. make gui slot 49 with slimeball named "&c&lClick » Back":
  128. open gui "SHOP" to player
  129. send "{@ctools}"
  130. make gui slot 10 with diamond_hoe named "&3$1750 &7For 1":
  131. Shop(player, {hoe.%player%}, {hoe1.%player%}, {hoe2.%player%})
  132. make gui slot 11 with diamond_pickaxe named "&3$1750 &7For 1":
  133. Shop(player, {pickaxe.%player%}, {pickaxe1.%player%}, {pickaxe2.%player%})
  134. make gui slot 12 with diamond_axe named "&3$1750 &7For 1":
  135. Shop(player, {axe.%player%}, {axe1.%player%}, {axe2.%player%})
  136. make gui slot 13 with diamond_Sword named "&3$1750 &7For 1":
  137. Shop(player, {sword.%player%}, {sword1.%player%}, {sword2.%player%})
  138. create a gui with id "SPAWNERS" with virtual chest with 6 rows named "&cSpawners":
  139. make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 36, 44, 53, 52, 51, 50, 48, 47, 46, 45, and 35 with black glass pane named " "
  140. make gui slot 49 with slimeball named "&c&lClick » Back":
  141. open gui "SHOP" to player
  142. send "{@ctools}"
  143. make gui slot 10 with mob_spawner named "&3$50000 &7For 1" with lore "&cPig Spawner":
  144. if player's balance is greater than or equal to 50000:
  145. remove 50000 from player's balance
  146. execute console command "ss give %player% pig 1"
  147. send "&6You successfully bought &71 Pig Spawner &6for &7$50000"
  148. else:
  149. set {_l} to 50000
  150. send "&c(&6!&c) You don't have enough money to buy this! &8(&7%player's balance%&8/&7$%{_l}%&8)" to player
  151. make gui slot 11 with mob_spawner named "&3$75000 &7For 1" with lore "&cCow Spawner":
  152. if player's balance is greater than or equal to 750000:
  153. remove 75000 from player's balance
  154. execute console command "ss give %player% cow 1"
  155. send "&6You successfully bought &71 Cow Spawner &6for &7$75000"
  156. else:
  157. set {_l} to 75000
  158. send "&c(&6!&c) You don't have enough money to buy this! &8(&7%player's balance%&8/&7$%{_l}%&8)" to player
  159. make gui slot 12 with mob_spawner named "&3$125000 &7For 1" with lore "&cZombie Spawner":
  160. if player's balance is greater than or equal to 125000:
  161. remove 125000 from player's balance
  162. execute console command "ss give %player% zombie 1"
  163. send "&6You successfully bought &71 Zombie Spawner &6for &7$125000"
  164. else:
  165. set {_l} to 125000
  166. send "&c(&6!&c) You don't have enough money to buy this! &8(&7%player's balance%&8/&7$%{_l}%&8)" to player
  167. make gui slot 13 with mob_spawner named "&3$150000 &7For 1" with lore "&cSkeleton Spawner":
  168. if player's balance is greater than or equal to 150000:
  169. remove 150000 from player's balance
  170. execute console command "ss give %player% skeleton 1"
  171. send "&6You successfully bought &71 Skeleton Spawner &6for &7$150000"
  172. else:
  173. set {_l} to 150000
  174. send "&c(&6!&c) You don't have enough money to buy this! &8(&7%player's balance%&8/&7$%{_l}%&8)" to player
  175. make gui slot 14 with mob_spawner named "&3$200000 &7For 1" with lore "&cBlaze Spawner":
  176. if player's balance is greater than or equal to 200000:
  177. remove 200000 from player's balance
  178. execute console command "ss give %player% blaze 1"
  179. send "&6You successfully bought &71 Blaze Spawner &6for &7$200000"
  180. else:
  181. set {_l} to 200000
  182. send "&c(&6!&c) You don't have enough money to buy this! &8(&7%player's balance%&8/&7$%{_l}%&8)" to player
  183. make gui slot 15 with mob_spawner named "&3$2500000 &7For 1" with lore "&cIron Golem Spawner":
  184. if player's balance is greater than or equal to 2500000:
  185. remove 2500000 from player's balance
  186. execute console command "ss give %player% irongolem 1"
  187. send "&6You successfully bought &71 Iron Golem Spawner &6for &7$2500000"
  188. else:
  189. set {_l} to 2500000
  190. send "&c(&6!&c) You don't have enough money to buy this! &8(&7%player's balance%&8/&7$%{_l}%&8)" to player
  191.  
  192. function Shop(p: Player, cost: integer, itemtype: String, itemamount: integer):
  193. set {_l} to {_cost}
  194. if {_p}'s balance >= {_l}:
  195. execute console command "give %{_p}% %{_itemtype}% %{_itemamount}%"
  196. remove {_l} from {_p}'s balance
  197. send "&6You successfully bought &7%{_itemamount}% %{_itemtype}% &6for &7$%{_l}%" to "%{_p}%" parsed as player
  198. else:
  199. send "&c(&6!&c) You don't have enough money to buy this! &8(&7%{_p}'s balance%&8/&7$%{_l}%&8)" to "%{_p}%" parsed as player
  200. create a gui with id "Paper" with virtual chest with 6 rows named "&cPermissions":
  201. make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 36, 44, 53, 52, 51, 50, 48, 47, 46, 45, and 35 with black glass pane named " "
  202. make gui slot 49 with slimeball named "&c&lClick » Back":
  203. open gui "SHOP" to player
  204. send "{@cperms}"
  205. make gui slot 10 with redstone named "&7Redstone" with lore "&3$250 &7For 16":
  206. Shop(player, {redstone.%player%}, {redstone1.%player%}, {redstone2.%player%})
  207. make gui slot 11 with redstone_repeater_item named "&7Redstone Repeater" with lore "&3$200 &7For 8":
  208. Shop(player, {redstonerepeater.%player%}, {redstonerepeater1.%player%}, {redstonerepeater2.%player%})
  209. make gui slot 12 with piston_base named "&7Piston" with lore "&3$250 &7For 8||&7&oThis may show a sticky piston but it will give a normal piston":
  210. Shop(player, {piston.%player%}, {piston1.%player%}, {piston2.%player%})
  211. make gui slot 13 with sticky_piston_block named "&7Sticky Piston" with lore "&3$250 &7For 8||&7&oThis may show a piston but it will give a sticky piston":
  212. Shop(player, {spiston.%player%}, {spiston1.%player%}, {spiston2.%player%})
  213. make gui slot 14 with observer named "&7Observer" with lore "&3$2500 &7For 1":
  214. Shop(player, {observer.%player%}, {observer1.%player%}, {observer2.%player%})
  215. make gui slot 15 with Lava_bucket named "&7Lava" with lore "&3$750 &7For 1":
  216. Shop(player, {lava.%player%}, {lava1.%player%}, {lava2.%player%})
  217. make gui slot 16 with redstone_comparator_item named "&7Redstone Comparator" with lore "&3$200 &7For 6":
  218. Shop(player, {Redstonec.%player%}, {Redstonec1.%player%}, {Redstonec2.%player%})
  219. make gui slot 19 with hopper named "&7Hopper" with lore "&3$5000 &7For 1":
  220. Shop(player, {hopper.%player%}, {hopper1.%player%}, {hopper2.%player%})
  221.  
  222. command /shop [<text>]:
  223. trigger:
  224. play sound "entity_chicken_egg" with volume 1 with pitch 1 at player for player
  225. set {cost.%player%} to 250
  226. set {item.%player%} to "Dirt"
  227. set {itemamount.%player%} to 8
  228. set {stone.%player%} to 500
  229. set {stone1.%player%} to "Stone"
  230. set {Stone2.%player%} to 16
  231. set {StoneBrick.%player%} to 750
  232. set {StoneBrick1.%player%} to "StoneBrick"
  233. set {StoneBrick2.%player%} to 16
  234. set {granite.%player%} to 250
  235. set {granite1.%player%} to "Granite"
  236. set {granite2.%player%} to 16
  237. set {Andesite.%player%} to 250
  238. set {Andesite1.%player%} to "Andesite"
  239. set {Andesite2.%player%} to 16
  240. set {oaklog.%player%} to 250
  241. set {oaklog1.%player%} to "OakLog"
  242. set {oaklog2.%player%} to 8
  243. set {Sprucelog.%player%} to 250
  244. set {Sprucelog1.%player%} to "SpruceLog"
  245. set {SpruceLog2.%player%} to 8
  246. set {BirchLog.%player%} to 250
  247. set {BirchLog1.%player%} to "BirchLog"
  248. set {Birchlog2.%player%} to 8
  249. set {DarkOakLog.%player%} to 250
  250. set {DarkOakLog1.%player%} to "DarkOakLog"
  251. set {DarkOakLog2.%player%} to 8
  252. set {QuartzBlock.%player%} to 1000
  253. set {QuartzBlock1.%player%} to "QuartzBlock"
  254. set {QuartzBlock2.%player%} to 16
  255. set {Cobblestone.%player%} to 375
  256. set {Cobblestone1.%player%} to "Cobblestone"
  257. set {Cobblestone2.%player%} to 16
  258. set {netherrack.%player%} to 125
  259. set {netherrack1.%player%} to "Netherrack"
  260. set {netherrack2.%player%} to 16
  261. set {sand.%player%} to 750
  262. set {sand1.%player%} to "Sand"
  263. set {sand2.%player%} to 8
  264. set {ice.%player%} to 750
  265. set {ice1.%player%} to "Ice"
  266. set {ice2.%player%} to 16
  267. set {packedice.%player%} to 1500
  268. set {packedice1.%player%} to "PackedIce"
  269. set {packedice2.%player%} to 16
  270. set {soulsand.%player%} to 500
  271. set {soulsand1.%player%} to "SoulSand"
  272. set {soulsand2.%player%} to 8
  273. set {plainglass.%player%} to 500
  274. set {plainglass1.%player%} to "Glass"
  275. set {plainglass2.%player%} to 16
  276. set {fence.%player%} to 250
  277. set {fence1.%player%} to "Fence"
  278. set {fence2.%player%} to 8
  279. set {slimeblock.%player%} to 125
  280. set {slimeblock1.%player%} to "SlimeBlock"
  281. set {slimeblock2.%player%} to 8
  282. set {string.%player%} to 75
  283. set {string1.%player%} to "String"
  284. set {string2.%player%} to 8
  285. set {redstone.%player%} to 250
  286. set {redstone1.%player%} to "Redstone"
  287. set {redstone2.%player%} to 16
  288. set {redstonerepeater.%player%} to 200
  289. set {redstonerepeater1.%player%} to "RedstoneRepeater"
  290. set {redstonerepeater2.%player%} to 8
  291. set {piston.%player%} to 250
  292. set {piston1.%player%} to "Piston"
  293. set {piston2.%player%} to 8
  294. set {spiston.%player%} to 250
  295. set {spiston1.%player%} to "StickyPiston"
  296. set {spiston2.%player%} to 8
  297. set {observer.%player%} to 2500
  298. set {observer1.%player%} to "Observer"
  299. set {observer2.%player%} to 1
  300. set {lava.%player%} to 750
  301. set {lava1.%player%} to "LavaBucket"
  302. set {lava2.%player%} to 1
  303. set {hopper.%player%} to 5000
  304. set {hopper1.%player%} to "Hopper"
  305. set {hopper2.%player%} to 1
  306. set {redstonec.%player%} to 200
  307. set {redstonec1.%player%} to "RedstoneComparator"
  308. set {redstonec2.%player%} to 6
  309. set {sugarcane.%player%} to 1750
  310. set {sugarcane1.%player%} to "Sugarcane"
  311. set {sugarcane2.%player%} to 8
  312. set {seeds.%player%} to 100
  313. set {seeds1.%player%} to "Seeds"
  314. set {seeds2.%player%} to 16
  315. set {cactus.%player%} to 2000
  316. set {cactus1.%player%} to "Cactus"
  317. set {cactus2.%player%} to 16
  318. set {pumpkin.%player%} to 1500
  319. set {pumpkin1.%player%} to "PumpkinSeeds"
  320. set {pumpkin2.%player%} to 16
  321. set {hoe.%player%} to 1750
  322. set {hoe1.%player%} to "DiamondHoe"
  323. set {hoe2.%player%} to 1
  324. set {pickaxe.%player%} to 1750
  325. set {pickaxe1.%player%} to "DiamondPickaxe"
  326. set {pickaxe2.%player%} to 1
  327. set {axe.%player%} to 1750
  328. set {axe1.%player%} to "DiamondAxe"
  329. set {axe2.%player%} to 1
  330. set {sword.%player%} to 1750
  331. set {sword1.%player%} to "DiamondSword"
  332. set {sword2.%player%} to 1
  333. send "{@omenu}"
  334. open gui "SHOP" to player
  335.  
  336. on load:
  337. broadcast "&d&m*--------*-----------*-----------*"
  338. broadcast "&7"
  339. broadcast "&5Skripted By: &dTastqQuery"
  340. broadcast "&7Check out my pastebin https://pastebin.com/u/TheJasonPlays"
  341. broadcast "&7"
  342. broadcast "&d&m*--------*-----------*-----------*"
Advertisement
Add Comment
Please, Sign In to add comment