Skocz do zawartości
  • 0

Pomoc z respawnem po smierci


Pytanie

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on damage of player:
	wait 1 tick
	if victim's health is between 0 and 0.3:
		heal victim
		clear the player's inventory
		set slot 0 of player's inventory to iron pickaxe of efficiency 5
		set slot 1 of player's inventory to iron axe of efficiency 5
		set slot 2 of player's inventory to 13 steak
		set slot 3 of player's inventory to 37 steak
		set slot 4 of player's inventory to 48 oak wood planks
		set slot 5 of player's inventory to ender chest
		teleport victim to {spawn}

on death of player:
	kick player due to "&fWejdz ponownie na serwer!"

 

Odnośnik do komentarza
https://skript.pl/temat/31351-pomoc-z-respawnem-po-smierci/#findComment-203827
Udostępnij na innych stronach

  • 0
Godzinę temu, xAxee napisał:

[00:55:47 ERROR]: Use 'attacker' and/or 'victim' in damage events (toolsy.sk, line 483: clear the player's inventory')
[00:55:47 ERROR]: Use 'attacker' and/or 'victim' in damage events (toolsy.sk, line 484: set slot 0 of player's inventory to iron pickaxe of efficiency 5')
[00:55:47 ERROR]: Use 'attacker' and/or 'victim' in damage events (toolsy.sk, line 485: set slot 1 of player's inventory to iron axe of efficiency 5')
[00:55:47 ERROR]: Use 'attacker' and/or 'victim' in damage events (toolsy.sk, line 486: set slot 2 of player's inventory to 13 steak')
[00:55:47 ERROR]: Use 'attacker' and/or 'victim' in damage events (toolsy.sk, line 487: set slot 3 of player's inventory to 37 steak')
[00:55:47 ERROR]: Use 'attacker' and/or 'victim' in damage events (toolsy.sk, line 488: set slot 4 of player's inventory to 48 oak wood planks')
[00:55:47 ERROR]: Use 'attacker' and/or 'victim' in damage events (toolsy.sk, line 489: set slot 5 of player's inventory to ender chest')

Zmienilem zamiast player's na victim's nie bylo bledow co prawda ale nie dawalo itemow ani nie respilo odrazu tylko musialem kliknac respawn

Odnośnik do komentarza
https://skript.pl/temat/31351-pomoc-z-respawnem-po-smierci/#findComment-203829
Udostępnij na innych stronach

  • 0
47 minut temu, AdeeK211555 napisał:

Zmienilem zamiast player's na victim's nie bylo bledow co prawda ale nie dawalo itemow ani nie respilo odrazu tylko musialem kliknac respawn

Aha no tak bo w on damage nie ma playera tylko victim i attacker sorki moj blad :D

Odnośnik do komentarza
https://skript.pl/temat/31351-pomoc-z-respawnem-po-smierci/#findComment-203832
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.

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

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