Witam.Mam taki problem.Mianowicie znalazłem skrypt na zmienianie potwora w spawnerze ze pieniądze, jednak wywala mi parę błędów i nie wiem jak je naprawić
KOD:
options:
cena_creeper: 5000
cena_skeleton: 5000
cena_spider: 5000
cena_zombie: 5000
cena_slime: 5000
cena_pigmen: 5000
cena_enderman: 5000
cena_cavespider: 5000
cena_silverfish: 5000
cena_blaze: 5000
cena_magmacube: 5000
cena_bat: 2500
cena_witch: 7000
cena_pig: 2500
cena_cow: 2500
cena_sheep: 2500
cena_chicken: 2500
cena_squid: 2500
cena_wolf: 5000
cena_mooshroom: 5000
cena_ocelot: 2500
cena_horse: 2500
cena_villager: 20000
cena_irongolem: 10000
cena_snowgolem: 2500
on right click on monster spawner:
open chest with 4 rows named "&6Zmiana spawnera" to player
wait 2 tick
format slot 0 of player with 1 of creeper spawn egg named "&bSpawner &2Creeperow" with lore "&bCena: &c{@cena_creeper}$" to run "creeper"
format slot 1 of player with 1 of skeleton spawn egg named "&bSpawner &2Szkieletow" with lore "&bCena: &c{@cena_skeleton}$" to be unstealable
format slot 2 of player with 1 of spider spawn egg named "&bSpawner &2Pajakow" with lore "&bCena: &c{@cena_spider}$" to be unstealable
format slot 3 of player with 1 of zombie spawn egg named "&bSpawner &2Zombie" with lore "&bCena: &c{@cena_zombie}$" to be unstealable
format slot 4 of player with 1 of slime spawn egg named "&bSpawner &2Slime" with lore "&bCena: &c{@cena_slime}$" to be unstealable
format slot 5 of player with 1 of snow golem spawn egg named "&bSpawner &2Balwanow" with lore "&bCena: &c{@cena_snowgolem}$" to be unstealable
format slot 6 of player with 1 of zombie pigman spawn egg named "&bSpawner &2Pigmenow" with lore "&bCena: &c{@cena_pigmen}$" to be unstealable
format slot 7 of player with 1 of enderman spawn egg named "&bSpawner &2Endermanow" with lore "&bCena: &c{@cena_enderman}$" to be unstealable
format slot 8 of player with 1 of cave spider spawn egg named "&bSpawner &2Pajakow Jaskiniowych" with lore "&bCena: &c{@cena_cavespider}$" to be unstealable
format slot 9 of player with 1 of silverfish spawn egg named "&bSpawner &2SilverFishow" with lore "&bCena: &c{@cena_silverfish}$" to be unstealable
format slot 10 of player with 1 of blaze spawn egg named "&bSpawner &2Blaze" with lore "&bCena: &c{@cena_blaze}$" to be unstealable
format slot 11 of player with 1 of magma cube spawn egg named "&bSpawner &2Magma Cube" with lore "&bCena: &c{@cena_magmacube}$" to be unstealable
format slot 12 of player with 1 of bat spawn egg named "&bSpawner &2Nietoperzy" with lore "&bCena: &c{@cena_bat}$" to be unstealable
format slot 13 of player with 1 of witch spawn egg named "&bSpawner &2Wiedzm" with lore "&bCena: &c{@cena_witch}$" to be unstealable
format slot 14 of player with 1 of pig spawn egg named "&bSpawner &2Swin" with lore "&bCena: &c{@cena_pig}$" to be unstealable
format slot 15 of player with 1 of sheep spawn egg named "&bSpawner &2Owiec" with lore "&bCena: &c{@cena_sheep}$" to be unstealable
format slot 16 of player with 1 of cow spawn egg named "&bSpawner &2Krow" with lore "&bCena: &c{@cena_cow}$" to be unstealable
format slot 17 of player with 1 of chicken spawn egg named "&bSpawner &2Kurczakow" with lore "&bCena: &c{@cena_chicken}$" to be unstealable
format slot 18 of player with 1 of squid spawn egg named "&bSpawner &2Kalamarnic" with lore "&bCena: &c{@cena_squid}$" to be unstealable
format slot 19 of player with 1 of wolf spawn egg named "&bSpawner &2Wilkow" with lore "&bCena: &c{@cena_wolf}$" to be unstealable
format slot 20 of player with 1 of mooshroom spawn egg named "&bSpawner &2Krow Grzybowych" with lore "&bCena: &c{@cena_mooshroom}$" to be unstealable
format slot 21 of player with 1 of ocelot spawn egg named "&bSpawner &2Ocelotow" with lore "&bCena: &c{@cena_ocelot}$" to be unstealable
format slot 22 of player with 1 of horse spawn egg named "&bSpawner &2Koni" with lore "&bCena: &c{@cena_horse}$" to be unstealable
format slot 23 of player with 1 of villager spawn egg named "&bSpawner &2Wiesniakow" with lore "&bCena: &c{@cena_villager}$" to be unstealable
format slot 24 of player with 1 of iron golem spawn egg named "&bSpawner &2Iron Golemow" with lore "&bCena: &c{@cena_irongolem}$" to be unstealable
command /zmien [<text>]:
trigger:
if arg 1 is "creeper":
if player's balance is greater or equal to 5000:
remove 5000 from player balance
execute console command "spawner creeper"
send "&eZmieniles spawner na &bCreepery"
else:
send "&cNie masz wystarczajacej ilosci kasy!"
błąd:
player balance is not an entity type (spawner.sk, line 159: remove 5000 from player balance)
Pytanie
TheVenix 0
Witam.Mam taki problem.Mianowicie znalazłem skrypt na zmienianie potwora w spawnerze ze pieniądze, jednak wywala mi parę błędów i nie wiem jak je naprawić
KOD:
Odnośnik do komentarza
Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi