Advertisement
tamem313a

spawner

Oct 17th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. command /spawner:
  2. trigger:
  3. open chest with 1 rows named "&b&lSpawner shop" to player
  4. wait 1 tick
  5. format slot 2 of player with 1 of 52 named "&b&lIron Golem Spawner" with lore "&7Price&8: &3&o1.750.000" to close then run [make player execute command "/spawnerbuy 1750000"]
  6. format slot 3 of player with 1 of 52 named "&b&lBlaze Spawner" with lore "&7Price&8: &3&o450.000" to close then run [make player execute command "/spawnerbuy 450000"]
  7. format slot 4 of player with 1 of 52 named "&b&lZombie Spawner" with lore "&7Price&8: &3&o55.000" to close then run [make player execute command "/spawnerbuy 55000"]
  8. format slot 5 of player with 1 of 52 named "&b&lPig Spawner" with lore "&7Price&8: &3&o115.000" to close then run [make player execute command "/spawnerbuy 115000"]
  9. command /spawnerbuy [<number>]:
  10. trigger:
  11. set {_pris} to arg 1
  12. if player's balance is bigger than or equal to {_pris}:
  13. if {_pris} is 1750000:
  14. execute console command "ss give %player% irongolem 1"
  15. if {_pris} is 450000:
  16. execute console command "ss give %player% blaze 1"
  17. if {_pris} is 55000:
  18. execute console command "ss give %player% zombie 1"
  19. if {_pris} is 115000:
  20. execute console command "ss give %player% pig 1"
  21. remove {_pris} from player's balance
  22. message "&a&oYou buyed a spawner for &2&o%{_pris}%&a&o!"
  23. else:
  24. message "&c&oYou do not have enought money for this!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement