Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. command /shop:
  2. trigger:
  3. create a gui with virtual chest with 3 row 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. open last gui to player
  15.  
  16. function blocks(p: player):
  17. create a gui with virtual chest with 5 rows named "&8Shop &7> &aBlocks":
  18. make gui slot 40 with nether star named "&cGo Back":
  19. execute player command "/shop"
  20. open last gui to {_p}
  21.  
  22. function food(p: player):
  23. create a gui with virtual chest with 5 rows named "&8Shop &7> &6Food":
  24. make gui slot 40 with nether star named "&cGo Back":
  25. execute player command "/shop"
  26. open last gui to {_p}
  27.  
  28. function tools(p: player):
  29. create a gui with virtual chest with 5 rows named "&8Shop &7> &9Tools":
  30. make gui slot 40 with nether star named "&cGo Back":
  31. execute player command "/shop"
  32. open last gui to {_p}
  33.  
  34. function redstone(p: player):
  35. create a gui with virtual chest with 5 rows named "&8Shop &7> &cRedstone":
  36. make gui slot 0 with piston named "&7Piston &6x4" with lore "&a$500":
  37. if {_p}'s balance is greater than or equal to 500:
  38. remove 500 from {_p}'s balance
  39. give {_p} 4 piston
  40. send "&aBought &7Piston &6x4" to {_p}
  41. make gui slot 1 with sticky piston named "&7Sticky Piston &6x4" with lore "&a$750":
  42. if {_p}'s balance is greater than or equal to 750:
  43. remove 750 from {_p}'s balance
  44. give {_p} 4 sticky piston
  45. send "&aBought &7Sticky Piston &6x4" to {_p}
  46. make gui slot 2 with hopper named "&7Hopper &6x1" with lore "&a$10000":
  47. if {_p}'s balance is greater than or equal to 10000:
  48. remove 10000 from {_p}'s balance
  49. give {_p} 1 hopper
  50. send "&aBought &7Hopper &6x1" to {_p}
  51. make gui slot 3 with observer named "&7Observer &6x4" with lore "&a$2000":
  52. if {_p}'s balance is greater than or equal to 2000:
  53. remove 2000 from {_p}'s balance
  54. give {_p} 4 observer
  55. send "&aBought &7Observer &6x4" to {_p}
  56. make gui slot 4 with redstone torch named "&7Redstone Torch &6x16" with lore "&a$100":
  57. if {_p}'s balance is greater than or equal to 100:
  58. remove 100 from {_p}'s balance
  59. give {_p} 16 redstone torch
  60. send "&aBought &7Redstone Torch &6x16" to {_p}
  61. make gui slot 5 with repeater named "&7Repeater &6x16" with lore "&a$500":
  62. if {_p}'s balance is greater than or equal to 500:
  63. remove 500 from {_p}'s balance
  64. give {_p} 16 repeater
  65. send "&aBought &7Repeater &6x16" to {_p}
  66. make gui slot 6 with comparator named "&7Comparator &6x4" with lore "&a$300":
  67. if {_p}'s balance is greater than or equal to 300:
  68. remove 300 from {_p}'s balance
  69. give {_p} 4 comparator
  70. send "&aBought &7Comparator &6x4" to {_p}
  71. make gui slot 40 with nether star named "&cGo Back":
  72. execute player command "/shop"
  73. open last gui to {_p}
  74.  
  75. function spawners(p: player):
  76. create a gui with virtual chest with 5 rows named "&8Shop &7> &5Spawners":
  77. make gui slot 40 with nether star named "&cGo Back":
  78. execute player command "/shop"
  79. open last gui to {_p}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement