Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /shop:
- trigger:
- create a gui with virtual chest with 5 rows 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)
- make gui slot 29 with wheat named "&eFarming":
- farming(player)
- make gui slot 33 with lava bucket named "&dMisc":
- misc(player)
- open last gui to player
- function farming(p: player):
- create a gui with virtual chest with 5 rows named "&8Shop &7> &eFarming":
- make gui slot 40 with nether star named "&cGo Back":
- execute player command "/shop"
- open last gui to {_p}
- function misc(p: player):
- create a gui with virtual chest with 5 rows named "&8Shop &7> &dMisc":
- make gui slot 40 with nether star named "&cGo Back":
- execute player command "/shop"
- open last gui to {_p}
- function blocks(p: player):
- create a gui with virtual chest with 5 rows named "&8Shop &7> &aBlocks":
- make gui slot 0 with oak log named "&7Oak Log &6x16" with lore "&a$250":
- if {_p}'s balance is greater than or equal to 250:
- remove 250 from {_p}'s balance
- give {_p} 16 oak log
- send "&aBought &7Oak Log &6x16" to {_p}
- make gui slot 1 with spruce log named "&7Spruce Log &6x16" with lore "&a$250":
- if {_p}'s balance is greater than or equal to 250:
- remove 250 from {_p}'s balance
- give {_p} 16 spruce log
- send "&aBought &7Spruce Log &6x16" to {_p}
- make gui slot 2 with birch log named "&7Birch Log &6x16" with lore "&a$250":
- if {_p}'s balance is greater than or equal to 250:
- remove 250 from {_p}'s balance
- give {_p} 16 birch log
- send "&aBought &7Birch Log &6x16" to {_p}
- make gui slot 3 with jungle log named "&7Jungle Log &6x16" with lore "&a$250":
- if {_p}'s balance is greater than or equal to 250:
- remove 250 from {_p}'s balance
- give {_p} 16 jungle log
- send "&aBought &7Jungle Log &6x16" to {_p}
- make gui slot 4 with acacia log named "&7Acacia Log &6x16" with lore "&a$250":
- if {_p}'s balance is greater than or equal to 250:
- remove 250 from {_p}'s balance
- give {_p} 16 acacia log
- send "&aBought &7Acacia Log &6x16" to {_p}
- make gui slot 5 with dark oak log named "&7Dark Oak Log &6x16" with lore "&a$250":
- if {_p}'s balance is greater than or equal to 250:
- remove 250 from {_p}'s balance
- give {_p} 16 dark oak log
- send "&aBought &7Dark Oak Log &6x16" to {_p}
- make gui slot 6 with glowstone named "&7Glowstone &6x4" with lore "&a$250":
- if {_p}'s balance is greater than or equal to 250:
- remove 250 from {_p}'s balance
- give {_p} 4 glowstone
- send "&aBought &7Glowstone &6x4" to {_p}
- make gui slot 7 with ice named "&7Ice &6x16" with lore "&a$1600":
- if {_p}'s balance is greater than or equal to 1600:
- remove 1600 from {_p}'s balance
- give {_p} 16 ice
- send "&aBought &7Ice &6x16" to {_p}
- make gui slot 8 with packed ice named "&7Packed Ice &6x16" with lore "&a$3500":
- if {_p}'s balance is greater than or equal to 3500:
- remove 3500 from {_p}'s balance
- give {_p} 16 packed ice
- send "&aBought &7Packed Ice &6x16" to {_p}
- make gui slot 9 with glass named "&7Glass &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 glass
- send "&aBought &7Glass &6x16" to {_p}
- make gui slot 10 with dirt named "&7Dirt &6x16" with lore "&a$50":
- if {_p}'s balance is greater than or equal to 50:
- remove 50 from {_p}'s balance
- give {_p} 16 dirt
- send "&aBought &7Dirt &6x16" to {_p}
- make gui slot 11 with stone named "&7Stone &6x16" with lore "&a$150":
- if {_p}'s balance is greater than or equal to 150:
- remove 150 from {_p}'s balance
- give {_p} 16 stone
- send "&aBought &7Stone &6x16" to {_p}
- make gui slot 12 with cobble named "&7Cobblestone &6x16" with lore "&a$75":
- if {_p}'s balance is greater than or equal to 75:
- remove 75 from {_p}'s balance
- give {_p} 16 cobble
- send "&aBought &7Cobblestone &6x16" to {_p}
- make gui slot 13 with sand named "&7Sand &6x16" with lore "&a$75":
- if {_p}'s balance is greater than or equal to 75:
- remove 75 from {_p}'s balance
- give {_p} 16 sand
- send "&aBought &7Sand &6x16" to {_p}
- make gui slot 14 with sandstone named "&7Sandstone &6x16" with lore "&a$150":
- if {_p}'s balance is greater than or equal to 150:
- remove 150 from {_p}'s balance
- give {_p} 16 sandstone
- send "&aBought &7Sandstone &6x16" to {_p}
- make gui slot 14 with wool named "&7Wool &6x16" with lore "&a$250":
- if {_p}'s balance is greater than or equal to 250:
- remove 250 from {_p}'s balance
- give {_p} 16 wool
- send "&aBought &7Wool &6x16" to {_p}
- 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