Skocz do zawartości
  • 0

Mam problem z tym skryptem


kromalek
 Udostępnij

Pytanie

on right click:
    if player is holding soul sand named "&4Nekromanta":
        cancel event
        remove soul sand named "&4Nekromanta" from player's inventory
        spawn skeleton at location of player
        set name of last spawned entity to "&4Nekromanta"
        set health of last spawned entity to 200
        heal last spawned entity
        set helmet of last spawned entity to bone block
        set chestplate of last spawned entity to golden chestplate
        set boots of last spawned entity to iron boots
        
        
on damage:
    if victim is skeleton:
        if victim's name is "&4Nekromanta":
        cancel event
        spawn 2 skeletons at attacker's location
        wait 1 second
        spawn 2 zombies at victim's location
        
        
on death:
    if victim is skeleton:
        if victim's name is "&4Nekromanta":
        spawn ghast at attacker's location
        spawn 10 skeletons at attacker's location
        spawn 10 zombies at victim's location

 

Poprawi ktos male bledy ktorych nie moge dostrzec?

Edytowane przez xAxee
xAxee

Wstawiam w code

Notatka dodana przez xAxee

Odnośnik do komentarza
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
on right click:
    if player is holding soul sand named "&4Nekromanta":
        remove soul sand named "&4Nekromanta" from player's inventory
        spawn skeleton at location of player
        set name of last spawned entity to "&4Nekromanta"
        set health of last spawned entity to 200
        heal last spawned entity
        set helmet of last spawned entity to bone block
        set chestplate of last spawned entity to golden chestplate
        set boots of last spawned entity to iron boots
		cancel event
        
        
on damage:
    if victim is skeleton:
        if victim's name is "&4Nekromanta":
          spawn 2 skeletons at attacker's location
          wait 1 second
          spawn 2 zombies at victim's location
        cancel event
        
on death:
    if victim is skeleton:
        if victim's name is "&4Nekromanta":
          spawn ghast at attacker's location
          spawn 10 skeletons at attacker's location
          spawn 10 zombies at victim's location

Jeżeli dobrze zrozumiałem działanie to powyżej masz poprawiony, jeżeli nie to opisz jak powinno działać

Odnośnik do komentarza
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

 Udostępnij

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

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