Skocz do zawartości
  • 0

Nieśmiertelne zombie


Pytanie

Chodzi o to, by po wpisaniu komendy /zespawnujzombie, spawnowalo zombie w miejscu gracza, o nazwie "&cKOX", ktory nie zapalałby sie na slońcu, ani był niewrazliwy, gdy gracz go uderzy. Jeśli nie da się zrobić, by nie zapalał się, to niech ma chociaż efekt fire resistance.

Odnośnik do komentarza
https://skript.pl/temat/20786-nie%C5%9Bmiertelne-zombie/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on damage:
	uncoloured name of victim is "KOX":
		cancel event
		apply fire resistance 3 to victim for 999 seconds

command /zespawnujzombie:
	trigger:
		spawn 1 of zombie at (location of player in world)
		set name of last spawned entity to "&6&lKOX"
		send "Zombie zespawniony" to player

//edit1: @Wirnowiled spróbuj mojego edytowanego kodu.

Edytowane przez esej
edit1
Odnośnik do komentarza
https://skript.pl/temat/20786-nie%C5%9Bmiertelne-zombie/#findComment-141239
Udostępnij na innych stronach

  • 0

Wymaga to jakiś dodatków do Skripta, bo wywala błędy?

 

> sk reload test
[Skript] Reloading test.sk...
the attacked entity is neither an item stack, a slot, a living entity, a player nor an inventory (test.sk, line 2: uncoloured name of victim is "KOX":')
the last dropped entity is neither an item stack, a slot, a living entity, a player nor an inventory (test.sk, line 8: set name of last spawned entity to "&6&lKOX"')
event-entity is neither an item stack nor an entity type (test.sk, line 15: uncoloured name of event-entity is "KOX":')
[Skript] Encountered 3 errors while reloading test.sk!

 

 

//edit1: Errory

 

[Skript] Reloading test.sk...
the attacked entity is neither an item stack, a slot, a living entity, a player nor an inventory (test.sk, line 2: uncoloured name of victim is "KOX":')
Can't understand this condition/effect: spawn 1 of zombie at (location of player in world) (test.sk, line 8: spawn 1 of zombie at (location of player in world)')
the last dropped entity is neither an item stack, a slot, a living entity, a player nor an inventory (test.sk, line 9: set name of last spawned entity to "&6&lKOX"')
[Skript] Encountered 3 errors while reloading test.sk!
>

 

Edytowane przez Wirnowiled
Odnośnik do komentarza
https://skript.pl/temat/20786-nie%C5%9Bmiertelne-zombie/#findComment-141358
Udostępnij na innych stronach

  • 0
on damage:
	if victim is zombie:
		if name of victim is "&6KOX":
			cancel event
command /zespawnujzombie:
	trigger:
		if player has permission "zespawnujzombie.sk":
			spawn 1 zombie named "&6KOX" at location of player
			apply fire resistance 1 to the last spawned entity for 9999 days
		else:
			send "&cNie masz dostepu do tej komendy!"
			

Aby użyć komendy /zespawnujzombie potrzebujesz uprawnienia "zespawnujzombie.sk"

Odnośnik do komentarza
https://skript.pl/temat/20786-nie%C5%9Bmiertelne-zombie/#findComment-143629
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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