Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /shop:
- trigger:
- create a gui with virtual chest with 3 row named "&8Shop":
- make gui slot 9 with grass named "&aBlocks":
- blocks(player)
- make gui slot 11 with cooked beef named "&6Food":
- food(player)
- make gui slot 13 with diamond pickaxe named "&9Tools":
- tools(player)
- make gui slot 15 with redstone dust named "&cRedstone":
- redstone(player)
- make gui slot 17 with spawner named "&5Spawners":
- spawners(player)
- open last gui to player
- function blocks(p: player):
- create a gui with virtual chest with 5 rows named "&8Shop &7> &aBlocks":
- make gui slot 40 with nether star named "&cGo Back":
- execute player command "/shop"
- open last gui to {_p}
- function food(p: player):
- create a gui with virtual chest with 5 rows named "&8Shop &7> &6Food":
- make gui slot 40 with nether star named "&cGo Back":
- execute player command "/shop"
- open last gui to {_p}
- function tools(p: player):
- create a gui with virtual chest with 5 rows named "&8Shop &7> &9Tools":
- make gui slot 40 with nether star named "&cGo Back":
- execute player command "/shop"
- open last gui to {_p}
- function redstone(p: player):
- create a gui with virtual chest with 5 rows named "&8Shop &7> &cRedstone":
- make gui slot 0 with piston named "&7Piston &6x4" with lore "&a$500":
- if {_p}'s balance is greater than or equal to 500:
- remove 500 from {_p}'s balance
- give {_p} 4 piston
- send "&aBought &7Piston &6x4" to {_p}
- make gui slot 1 with sticky piston named "&7Sticky Piston &6x4" with lore "&a$750":
- if {_p}'s balance is greater than or equal to 750:
- remove 750 from {_p}'s balance
- give {_p} 4 sticky piston
- send "&aBought &7Sticky Piston &6x4" to {_p}
- make gui slot 2 with hopper named "&7Hopper &6x1" with lore "&a$10000":
- if {_p}'s balance is greater than or equal to 10000:
- remove 10000 from {_p}'s balance
- give {_p} 1 hopper
- send "&aBought &7Hopper &6x1" to {_p}
- make gui slot 3 with observer named "&7Observer &6x4" with lore "&a$2000":
- if {_p}'s balance is greater than or equal to 2000:
- remove 2000 from {_p}'s balance
- give {_p} 4 observer
- send "&aBought &7Observer &6x4" to {_p}
- make gui slot 4 with redstone torch named "&7Redstone Torch &6x16" with lore "&a$100":
- if {_p}'s balance is greater than or equal to 100:
- remove 100 from {_p}'s balance
- give {_p} 16 redstone torch
- send "&aBought &7Redstone Torch &6x16" to {_p}
- make gui slot 5 with repeater named "&7Repeater &6x16" with lore "&a$500":
- if {_p}'s balance is greater than or equal to 500:
- remove 500 from {_p}'s balance
- give {_p} 16 repeater
- send "&aBought &7Repeater &6x16" to {_p}
- make gui slot 6 with comparator named "&7Comparator &6x4" with lore "&a$300":
- if {_p}'s balance is greater than or equal to 300:
- remove 300 from {_p}'s balance
- give {_p} 4 comparator
- send "&aBought &7Comparator &6x4" to {_p}
- make gui slot 40 with nether star named "&cGo Back":
- execute player command "/shop"
- open last gui to {_p}
- function spawners(p: player):
- create a gui with virtual chest with 5 rows named "&8Shop &7> &5Spawners":
- make gui slot 40 with nether star named "&cGo Back":
- execute player command "/shop"
- open last gui to {_p}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement