Skocz do zawartości
  • 0

Skrypt na spawnery


TheVenix
 Udostępnij

Pytanie

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:

  1. options:
  2.         cena_creeper: 5000
  3.         cena_skeleton: 5000
  4.         cena_spider: 5000
  5.         cena_zombie: 5000
  6.         cena_slime: 5000
  7.         cena_pigmen: 5000
  8.         cena_enderman: 5000
  9.         cena_cavespider: 5000
  10.         cena_silverfish: 5000
  11.         cena_blaze: 5000
  12.         cena_magmacube: 5000
  13.         cena_bat: 2500
  14.         cena_witch: 7000
  15.         cena_pig: 2500
  16.         cena_cow: 2500
  17.         cena_sheep: 2500
  18.         cena_chicken: 2500
  19.         cena_squid: 2500
  20.         cena_wolf: 5000
  21.         cena_mooshroom: 5000
  22.         cena_ocelot: 2500
  23.         cena_horse: 2500
  24.         cena_villager: 20000
  25.         cena_irongolem: 10000
  26.         cena_snowgolem: 2500
  27. on right click on monster spawner:
  28.         open chest with 4 rows named "&6Zmiana spawnera" to player
  29.         wait 2 tick
  30.         format slot 0 of player with 1 of creeper spawn egg named "&bSpawner &2Creeperow" with lore "&bCena: &c{@cena_creeper}$" to run "creeper"
  31.         format slot 1 of player with 1 of skeleton spawn egg named "&bSpawner &2Szkieletow" with lore "&bCena: &c{@cena_skeleton}$" to be unstealable
  32.         format slot 2 of player with 1 of spider spawn egg named "&bSpawner &2Pajakow" with lore "&bCena: &c{@cena_spider}$" to be unstealable
  33.         format slot 3 of player with 1 of zombie spawn egg named "&bSpawner &2Zombie" with lore "&bCena: &c{@cena_zombie}$" to be unstealable
  34.         format slot 4 of player with 1 of slime spawn egg named "&bSpawner &2Slime" with lore "&bCena: &c{@cena_slime}$" to be unstealable
  35.         format slot 5 of player with 1 of snow golem spawn egg named "&bSpawner &2Balwanow" with lore "&bCena: &c{@cena_snowgolem}$" to be unstealable
  36.         format slot 6 of player with 1 of zombie pigman spawn egg named "&bSpawner &2Pigmenow" with lore "&bCena: &c{@cena_pigmen}$" to be unstealable
  37.         format slot 7 of player with 1 of enderman spawn egg named "&bSpawner &2Endermanow" with lore "&bCena: &c{@cena_enderman}$" to be unstealable
  38.         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
  39.         format slot 9 of player with 1 of silverfish spawn egg named "&bSpawner &2SilverFishow" with lore "&bCena: &c{@cena_silverfish}$" to be unstealable
  40.         format slot 10 of player with 1 of blaze spawn egg named "&bSpawner &2Blaze" with lore "&bCena: &c{@cena_blaze}$" to be unstealable
  41.         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
  42.         format slot 12 of player with 1 of bat spawn egg named "&bSpawner &2Nietoperzy" with lore "&bCena: &c{@cena_bat}$" to be unstealable
  43.         format slot 13 of player with 1 of witch spawn egg named "&bSpawner &2Wiedzm" with lore "&bCena: &c{@cena_witch}$" to be unstealable
  44.         format slot 14 of player with 1 of pig spawn egg named "&bSpawner &2Swin" with lore "&bCena: &c{@cena_pig}$" to be unstealable
  45.         format slot 15 of player with 1 of sheep spawn egg named "&bSpawner &2Owiec" with lore "&bCena: &c{@cena_sheep}$" to be unstealable
  46.         format slot 16 of player with 1 of cow spawn egg named "&bSpawner &2Krow" with lore "&bCena: &c{@cena_cow}$" to be unstealable
  47.         format slot 17 of player with 1 of chicken spawn egg named "&bSpawner &2Kurczakow" with lore "&bCena: &c{@cena_chicken}$" to be unstealable
  48.         format slot 18 of player with 1 of squid spawn egg named "&bSpawner &2Kalamarnic" with lore "&bCena: &c{@cena_squid}$" to be unstealable
  49.         format slot 19 of player with 1 of wolf spawn egg named "&bSpawner &2Wilkow" with lore "&bCena: &c{@cena_wolf}$" to be unstealable
  50.         format slot 20 of player with 1 of mooshroom spawn egg named "&bSpawner &2Krow Grzybowych" with lore "&bCena: &c{@cena_mooshroom}$" to be unstealable
  51.         format slot 21 of player with 1 of ocelot spawn egg named "&bSpawner &2Ocelotow" with lore "&bCena: &c{@cena_ocelot}$" to be unstealable
  52.         format slot 22 of player with 1 of horse spawn egg named "&bSpawner &2Koni" with lore "&bCena: &c{@cena_horse}$" to be unstealable
  53.         format slot 23 of player with 1 of villager spawn egg named "&bSpawner &2Wiesniakow" with lore "&bCena: &c{@cena_villager}$" to be unstealable
  54.         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
  55. command /zmien [<text>]:
  56.         trigger:
  57.                 if arg 1 is "creeper":
  58.                         if player's balance is greater or equal to 5000:
  59.                                 remove 5000 from player balance
  60.                                 execute console command "spawner creeper"
  61.                                 send "&eZmieniles spawner na &bCreepery"
  62.                         else:
  63.                                 send "&cNie masz wystarczajacej ilosci kasy!"
błąd:
player balance is not an entity type (spawner.sk, line 159: remove 5000 from player balance)
Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Remove 5000 from player'S balance :P

 

2 godziny temu, TheVenix napisał:

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:

  1. options:
  2.         cena_creeper: 5000
  3.         cena_skeleton: 5000
  4.         cena_spider: 5000
  5.         cena_zombie: 5000
  6.         cena_slime: 5000
  7.         cena_pigmen: 5000
  8.         cena_enderman: 5000
  9.         cena_cavespider: 5000
  10.         cena_silverfish: 5000
  11.         cena_blaze: 5000
  12.         cena_magmacube: 5000
  13.         cena_bat: 2500
  14.         cena_witch: 7000
  15.         cena_pig: 2500
  16.         cena_cow: 2500
  17.         cena_sheep: 2500
  18.         cena_chicken: 2500
  19.         cena_squid: 2500
  20.         cena_wolf: 5000
  21.         cena_mooshroom: 5000
  22.         cena_ocelot: 2500
  23.         cena_horse: 2500
  24.         cena_villager: 20000
  25.         cena_irongolem: 10000
  26.         cena_snowgolem: 2500
  27. on right click on monster spawner:
  28.         open chest with 4 rows named "&6Zmiana spawnera" to player
  29.         wait 2 tick
  30.         format slot 0 of player with 1 of creeper spawn egg named "&bSpawner &2Creeperow" with lore "&bCena: &c{@cena_creeper}$" to run "creeper"
  31.         format slot 1 of player with 1 of skeleton spawn egg named "&bSpawner &2Szkieletow" with lore "&bCena: &c{@cena_skeleton}$" to be unstealable
  32.         format slot 2 of player with 1 of spider spawn egg named "&bSpawner &2Pajakow" with lore "&bCena: &c{@cena_spider}$" to be unstealable
  33.         format slot 3 of player with 1 of zombie spawn egg named "&bSpawner &2Zombie" with lore "&bCena: &c{@cena_zombie}$" to be unstealable
  34.         format slot 4 of player with 1 of slime spawn egg named "&bSpawner &2Slime" with lore "&bCena: &c{@cena_slime}$" to be unstealable
  35.         format slot 5 of player with 1 of snow golem spawn egg named "&bSpawner &2Balwanow" with lore "&bCena: &c{@cena_snowgolem}$" to be unstealable
  36.         format slot 6 of player with 1 of zombie pigman spawn egg named "&bSpawner &2Pigmenow" with lore "&bCena: &c{@cena_pigmen}$" to be unstealable
  37.         format slot 7 of player with 1 of enderman spawn egg named "&bSpawner &2Endermanow" with lore "&bCena: &c{@cena_enderman}$" to be unstealable
  38.         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
  39.         format slot 9 of player with 1 of silverfish spawn egg named "&bSpawner &2SilverFishow" with lore "&bCena: &c{@cena_silverfish}$" to be unstealable
  40.         format slot 10 of player with 1 of blaze spawn egg named "&bSpawner &2Blaze" with lore "&bCena: &c{@cena_blaze}$" to be unstealable
  41.         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
  42.         format slot 12 of player with 1 of bat spawn egg named "&bSpawner &2Nietoperzy" with lore "&bCena: &c{@cena_bat}$" to be unstealable
  43.         format slot 13 of player with 1 of witch spawn egg named "&bSpawner &2Wiedzm" with lore "&bCena: &c{@cena_witch}$" to be unstealable
  44.         format slot 14 of player with 1 of pig spawn egg named "&bSpawner &2Swin" with lore "&bCena: &c{@cena_pig}$" to be unstealable
  45.         format slot 15 of player with 1 of sheep spawn egg named "&bSpawner &2Owiec" with lore "&bCena: &c{@cena_sheep}$" to be unstealable
  46.         format slot 16 of player with 1 of cow spawn egg named "&bSpawner &2Krow" with lore "&bCena: &c{@cena_cow}$" to be unstealable
  47.         format slot 17 of player with 1 of chicken spawn egg named "&bSpawner &2Kurczakow" with lore "&bCena: &c{@cena_chicken}$" to be unstealable
  48.         format slot 18 of player with 1 of squid spawn egg named "&bSpawner &2Kalamarnic" with lore "&bCena: &c{@cena_squid}$" to be unstealable
  49.         format slot 19 of player with 1 of wolf spawn egg named "&bSpawner &2Wilkow" with lore "&bCena: &c{@cena_wolf}$" to be unstealable
  50.         format slot 20 of player with 1 of mooshroom spawn egg named "&bSpawner &2Krow Grzybowych" with lore "&bCena: &c{@cena_mooshroom}$" to be unstealable
  51.         format slot 21 of player with 1 of ocelot spawn egg named "&bSpawner &2Ocelotow" with lore "&bCena: &c{@cena_ocelot}$" to be unstealable
  52.         format slot 22 of player with 1 of horse spawn egg named "&bSpawner &2Koni" with lore "&bCena: &c{@cena_horse}$" to be unstealable
  53.         format slot 23 of player with 1 of villager spawn egg named "&bSpawner &2Wiesniakow" with lore "&bCena: &c{@cena_villager}$" to be unstealable
  54.         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
  55. command /zmien [<text>]:
  56.         trigger:
  57.                 if arg 1 is "creeper":
  58.                         if player's balance is greater or equal to 5000:
  59.                                 remove 5000 from player balance
  60.                                 execute console command "spawner creeper"
  61.                                 send "&eZmieniles spawner na &bCreepery"
  62.                         else:
  63.                                 send "&cNie masz wystarczajacej ilosci kasy!"
błąd:
player balance is not an entity type (spawner.sk, line 159: remove 5000 from player balance)
 

Działa?

 

//Spam i DP; łączę ~PoweredDragon

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...