Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] Błąd w skrypcie na bossy.


Rekomendowane odpowiedzi

Opublikowano

Witam chciałbym zrobić aby w 20 miejscach na mapie spawniły się zombie w zbrojach i z mieczem oto mój kod ale jest w nim pewien błąd którego nie umię naprawić:
 

 

spawn 1 zombie at {zombie.1} and {zombie.2}

apply potion of fire resistance tier 1 to last spawned zombie for 10 days
set the last spawned entity's max health to 1500
set helmet of the spawned zombie to a diamond helmet of protection 5
set the spawned zombie's display name to "&4&lKrol zombie"
set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 5 and knockback 5
heal last spawned entity

 

1377531174-U173186.png

Opublikowano

@Lord loginus
 

 

every 15 minut:

spawn 1 zombie at {zombie.1} and {zombie.2}

apply potion of fire resistance tier 1 to last spawned zombie for 10 days
set the last spawned entity's max health to 1500
set helmet of the spawned zombie to a diamond helmet of protection 5
set the spawned zombie's display name to "&4&lKrol zombie"
set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 5 and knockback 5
heal last spawned entity

1377531174-U173186.png

Opublikowano

A wywala ci jakieś błędy? Podaj je.

 

Tutaj błąd:

apply potion of fire resistance tier 1 to last spawned zombie for 10 days

Poprawnie:

apply fire resistance 1 to last spawned entity for 10 days

Zamien te wszystkie "spawned zombie" na "spawned entity"

Opublikowano

TO zmien to:

spawn 1 zombie at {zombie.1} and {zombie.2}

na to :

spawn 1 zombie at {zombie.1}

I potem skopiuj ten kod, wklej i daj

spawn 1 zombie at {zombie.2}

Opublikowano
every 15 minut:
spawn 1 zombie at {zombie.1}
apply potion of fire resistance tier 1 to last spawned zombie for 10 days
set the last spawned entity's max health to 1500
set helmet of the spawned zombie to a diamond helmet of protection 5
set the spawned zombie's display name to "&4&lKrol zombie"
set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 5 and knockback 5
heal last spawned entity

spawn 1 zombie at {zombie.2}
apply potion of fire resistance tier 1 to last spawned zombie for 10 days
set the last spawned entity's max health to 1500
set helmet of the spawned zombie to a diamond helmet of protection 5
set the spawned zombie's display name to "&4&lKrol zombie"
set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 5 and knockback 5
heal last spawned entity

Myślę,że dobrze zrozumiałem ;3

26_unnamed.png

Opublikowano
every 15 minut:
spawn 1 zombie at {zombie.1}
apply potion of fire resistance tier 1 to last spawned zombie for 10 days
set the last spawned entity's max health to 1500
set helmet of the spawned zombie to a diamond helmet of protection 5
set the spawned zombie's display name to "&4&lKrol zombie"
set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 5 and knockback 5
heal last spawned entity

spawn 1 zombie at {zombie.2}
apply potion of fire resistance tier 1 to last spawned zombie for 10 days
set the last spawned entity's max health to 1500
set helmet of the spawned zombie to a diamond helmet of protection 5
set the spawned zombie's display name to "&4&lKrol zombie"
set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 5 and knockback 5
heal last spawned entity

Myślę,że dobrze zrozumiałem ;3

 

@AsherTivi dobrze zrozumiałeś ale ale mi chodziło oto aby w jednym takim kodzie napisać że 2 miejscach spawni się zombiak w tej zbjoi

1377531174-U173186.png

Opublikowano

@AsherTivi dobrze zrozumiałeś ale ale mi chodziło oto aby w jednym takim kodzie napisać że 2 miejscach spawni się zombiak w tej zbjoi

Masz. Zmieniłem zamiast .zombie1 dałem .zombie2 :3

26_unnamed.png

Opublikowano

Nabijacze postów i tyle... nie widzicie, że napisał "every 15 minut:"? ;_;

every 15 minutes:
    spawn 1 zombie at {zombie.1}
    apply potion of fire resistance tier 1 to last spawned zombie for 10 days
    set the last spawned entity's max health to 1500
    set helmet of the spawned zombie to a diamond helmet of protection 5
    set the spawned zombie's display name to "&4&lKrol zombie"
    set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 5 and knockback 5
    heal last spawned entity
    spawn 1 zombie at {zombie.2}
    apply potion of fire resistance tier 1 to last spawned zombie for 10 days
    set the last spawned entity's max health to 1500
    set helmet of the spawned zombie to a diamond helmet of protection 5
    set the spawned zombie's display name to "&4&lKrol zombie"
    set tool of the spawned zombie to a diamond sword of sharpness 5 and fire aspect 5 and knockback 5
    heal last spawned entity

nie testowane.

 

sygnatura.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...