Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /spawner:
- trigger:
- open chest with 2 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.500.000" to close then run [make player execute command "/spawnerbuy ig"]
- 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 blaze"]
- 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 zombie"]
- format slot 5 of player with 1 of 52 named "&b&lPig Spawner" with lore "&7Price&8: &3&o20.000" to close then run [make player execute command "/spawnerbuy pig"]
- format slot 6 of player with 1 of 52 named "&b&lCow Spawner" with lore "&7Price&8: &3&o60.000" to close then run [make player execute command "/spawnerbuy cow"]
- command /spawnerbuy [<number>]:
- trigger:
- set {_pris} to arg 1
- if player's balance is bigger than or equal to {_pris}:
- if {_pris} is ig:
- execute console command "ss give %player% irongolem 1"
- execute console command "eco take %player% 1500000"
- if {_pris} is blaze:
- execute console command "ss give %player% blaze 1"
- execute console command "eco take %player% 450000"
- if {_pris} is zombie:
- execute console command "ss give %player% zombie 1"
- execute console command "eco take %player% 55000"
- if {_pris} is pig:
- execute console command "ss give %player% pig 1"
- execute console command "eco take %player% 20000"
- if {_pris} is cow:
- execute console command "ss give %player% cow 1"
- execute console command "eco take %player% 60000"
- 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 enought money for this!"
Add Comment
Please, Sign In to add comment