Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Multiples Shop | Vinixs
- #
- command /shop:
- trigger:
- open virtual chest inventory with size 3 named "&c&lSkyblocks Shop" to player
- format gui slot 10 of player with plain_glass_block named "&f&lGlass" to run player command "/glass"
- format gui slot 12 of player with wheat named "&a&lFarming" to run player command "/farming"
- format gui slot 14 of player with redstone named "&c&lRedstone" to run player command "/redstone"
- format gui slot 16 of player with stone named "&7&lBlocks" to run player command "/blocks"
- command /blocks:
- trigger:
- open virtual chest inventory with size 4 named "&7&lBlocks" to player
- format gui slot 10 of player with grass named "&aGrass" with lore "&7&m----------||&aPrice: $150||&7&m----------" to run player command "/buygrass"
- format gui slot 12 of player with cobble_stone named "&aCobblestone" with lore "&7&m----------||&aPrice: $75||&7&m----------" to run player command "/buycobblestone"
- format gui slot 14 of player with SMOOTH_STONE_BRICK named "&aStonebrick" with lore "&7&m----------||&aPrice: $100||&7&m----------" to run player command "/buystonebrick"
- format gui slot 16 of player with sand named "&aSand" with lore "&7&m----------||&aPrice: $100||&7&m----------" to run player command "/buysand"
- format gui slot 27 of player with barrier named "&c&lBack" to run player command "/shop"
- command /buygrass:
- trigger:
- if player's balance is >= 150:
- subtract 150 from %player's money%
- send "&aSuccess"
- send "&7Bought x1 Grass."
- give %player% 1 grass
- if player's balance is < 150:
- set {_neededm} to difference between player's balance and 150
- send "&cError:"
- send "&7You do not have enough money."
- send "&7You need &c$%{_neededm}% &7more."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement