Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /spawner:
- trigger:
- open chest with 1 rows named "&b&lSpawner shop" to player
- wait 1 tick
- 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"]
- 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"]
- 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"]
- 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"]
- command /spawnerbuy [<number>]:
- trigger:
- set {_pris} to arg 1
- if player's balance is bigger than or equal to {_pris}:
- if {_pris} is 1750000:
- execute console command "ss give %player% irongolem 1"
- if {_pris} is 450000:
- execute console command "ss give %player% blaze 1"
- if {_pris} is 55000:
- execute console command "ss give %player% zombie 1"
- if {_pris} is 115000:
- execute console command "ss give %player% pig 1"
- remove {_pris} from player's balance
- message "&a&oYou buyed a spawner for &2&o%{_pris}%&a&o!"
- else:
- message "&c&oYou do not have enough money for this!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement