Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. #
  2. # Multiples Shop | Vinixs
  3. #
  4.  
  5. command /shop:
  6. trigger:
  7. open virtual chest inventory with size 3 named "&c&lSkyblocks Shop" to player
  8. format gui slot 10 of player with plain_glass_block named "&f&lGlass" to run player command "/glass"
  9. format gui slot 12 of player with wheat named "&a&lFarming" to run player command "/farming"
  10. format gui slot 14 of player with redstone named "&c&lRedstone" to run player command "/redstone"
  11. format gui slot 16 of player with stone named "&7&lBlocks" to run player command "/blocks"
  12.  
  13. command /blocks:
  14. trigger:
  15. open virtual chest inventory with size 4 named "&7&lBlocks" to player
  16. format gui slot 10 of player with grass named "&aGrass" with lore "&7&m----------||&aPrice: $150||&7&m----------" to run player command "/buygrass"
  17. format gui slot 12 of player with cobble_stone named "&aCobblestone" with lore "&7&m----------||&aPrice: $75||&7&m----------" to run player command "/buycobblestone"
  18. 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"
  19. format gui slot 16 of player with sand named "&aSand" with lore "&7&m----------||&aPrice: $100||&7&m----------" to run player command "/buysand"
  20. format gui slot 27 of player with barrier named "&c&lBack" to run player command "/shop"
  21.  
  22. command /buygrass:
  23. trigger:
  24. if player's balance is >= 150:
  25. subtract 150 from %player's money%
  26. send "&aSuccess"
  27. send "&7Bought x1 Grass."
  28. give %player% 1 grass
  29. if player's balance is < 150:
  30. set {_neededm} to difference between player's balance and 150
  31. send "&cError:"
  32. send "&7You do not have enough money."
  33. send "&7You need &c$%{_neededm}% &7more."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement