Skocz do zawartości
  • 0

Mobki


Koksu123

Pytanie

Potrzebuje skryptu aby na wyznaczonych kordach respily sie co 30 sekund specjalne moby szkielet netherowy ktore maja 30 serc i ma w rece miecz stonowy sharpness 10

i gdy sie zabije takiego szkieleta jest 5% ze wpyadnie ci redstone nazwany "&4&lRuna zwiekszonych obrazen"

Odnośnik do komentarza
https://skript.pl/temat/41481-mobki/
Udostępnij na innych stronach

16 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
6 minut temu, Koksu123 napisał:

Potrzebuje skryptu aby na wyznaczonych kordach respily sie co 30 sekund specjalne moby szkielet netherowy ktore maja 30 serc i ma w rece miecz stonowy sharpness 10

i gdy sie zabije takiego szkieleta jest 5% ze wpyadnie ci redstone nazwany "&4&lRuna zwiekszonych obrazen"

Proszę.

every 30 seconds:
	spawn a wither skeleton at location 100, 100, 100 in world "world"
	set max health of last spawned wither skeleton to 30
	heal last spawned wither skeleton
	set tool of last spawned wither skeleton to stone sword of sharpness 10

on death of wither skeleton:
	if tool of victim is not stone sword of sharpness 10:
		stop
	chance of 5%:
		drop 1 redstone named "&4&lRuna zwiekszonych obrazen" at victim

 

Odnośnik do komentarza
https://skript.pl/temat/41481-mobki/#findComment-259610
Udostępnij na innych stronach

  • 0
7 minut temu, Koksu123 napisał:

@Kormic to dalo by sie to zrobic?

options:
	liczba-szkieletow: 10

every 30 seconds:
	if {nieumarleSzkielety::ilosc} is not set:
		set {nieumarleSzkielety::ilosc} to 0
	if {nieumarleSzkielety::ilosc} is greater than or equal to {@liczba-szkieletow}:
		stop
	add 1 to {nieumarleSzkielety::ilosc}
	spawn a wither skeleton at location 100, 100, 100 in world "world"
	set max health of last spawned wither skeleton to 30
	heal last spawned wither skeleton
	set name of last spawned wither skeleton to "&c&lNieumarly Szkielet"
	set tool of last spawned wither skeleton to stone sword of sharpness 10

on death of wither skeleton:
	if name of victim is not "&c&lNieumarly Szkielet":
		stop
	chance of 5%:
		drop 1 redstone named "&4&lRuna zwiekszonych obrazen" at victim

Proszę. Dodałem bezwzględny limit, w tym przypadku jest to 10.

Edytowane przez Kormic
Odnośnik do komentarza
https://skript.pl/temat/41481-mobki/#findComment-259624
Udostępnij na innych stronach

  • 0
16 minut temu, Koksu123 napisał:

tak

Nie widzę błędu w kodzie. Spróbuj ewentualnie z czymś takim:

options:
	liczba-szkieletow: 10

every 30 seconds:
	if {nieumarleSzkielety::ilosc} is not set:
		set {nieumarleSzkielety::ilosc} to 0
		broadcast "Ustawiono zmienna!"
	if {nieumarleSzkielety::ilosc} is greater than or equal to {@liczba-szkieletow}:
		broadcast "Zbyt wiele szkieletow!"
		stop
	add 1 to {nieumarleSzkielety::ilosc}
	spawn a wither skeleton at location 100, 100, 100 in world "world"
	set max health of last spawned wither skeleton to 30
	heal last spawned wither skeleton
	set name of last spawned wither skeleton to "&c&lNieumarly Szkielet"
	set tool of last spawned wither skeleton to stone sword of sharpness 10
	broadcast "Szkielet pojawil sie!"

on death of wither skeleton:
	if name of victim is not "&c&lNieumarly Szkielet":
		stop
	chance of 5%:
		drop 1 redstone named "&4&lRuna zwiekszonych obrazen" at victim

Przetestuj i powiedz co pojawia się na czacie.

Odnośnik do komentarza
https://skript.pl/temat/41481-mobki/#findComment-259632
Udostępnij na innych stronach

  • 0
14 minut temu, Koksu123 napisał:

Mam napisane "zbyt wiele szkieletow"

@Kormic Mozna to naprawic?

Aaa... dobra, boże xd. Już zauważyłem w czym błąd. Musisz w 'on death of wither skeleton' nad 'chance of 5%:' dać:

remove 1 from {nieumarleSzkielety::ilosc}

Przy okazji dorzuć sobie jakąś komendę do ustawienia tej zmiennej na 0.

Odnośnik do komentarza
https://skript.pl/temat/41481-mobki/#findComment-259639
Udostępnij na innych stronach

  • 0

options:
    liczba-szkieletow: 10

every 30 seconds:
    if {nieumarleSzkielety::ilosc} is not set:
        set {nieumarleSzkielety::ilosc} to 0
        broadcast "Ustawiono zmienna!"
    if {nieumarleSzkielety::ilosc} is greater than or equal to {@liczba-szkieletow}:
        broadcast "Zbyt wiele szkieletow!"
        stop
    add 1 to {nieumarleSzkielety::ilosc}
    spawn a wither skeleton at location -628, 203, -18 in world "world"
    set max health of last spawned wither skeleton to 30
    heal last spawned wither skeleton
    set name of last spawned wither skeleton to "&c&lNieumarly Szkielet"
    set tool of last spawned wither skeleton to stone sword of sharpness 10
    broadcast "Szkielet pojawil sie!"

on death of wither skeleton:
    if name of victim is not "&c&lNieumarly Szkielet":
        stop
        remove 1 from {nieumarleSzkielety::ilosc}
    chance of 5%:
        drop 1 redstone named "&4&lRuna zwiekszonych obrazen" at victim

Edytowane przez Koksu123
Odnośnik do komentarza
https://skript.pl/temat/41481-mobki/#findComment-259642
Udostępnij na innych stronach

  • 0
Teraz, Koksu123 napisał:

options:
    liczba-szkieletow: 10

every 3000000000 seconds:
    if {nieumarleSzkielety::ilosc} is not set:
        set {nieumarleSzkielety::ilosc} to 0
        broadcast "Ustawiono zmienna!"
    if {nieumarleSzkielety::ilosc} is greater than or equal to {@liczba-szkieletow}:
        broadcast "Zbyt wiele szkieletow!"
        stop
    add 1 to {nieumarleSzkielety::ilosc}
    spawn a wither skeleton at location -628, 203, -18 in world "world"
    set max health of last spawned wither skeleton to 30
    heal last spawned wither skeleton
    set name of last spawned wither skeleton to "&c&lNieumarly Szkielet"
    set tool of last spawned wither skeleton to stone sword of sharpness 10
    broadcast "Szkielet pojawil sie!"

on death of wither skeleton:
    if name of victim is not "&c&lNieumarly Szkielet":
        stop
        remove 1 from {nieumarleSzkielety::ilosc}
    chance of 5%:
        drop 1 redstone named "&4&lRuna zwiekszonych obrazen" at victim

Źle wstawiłeś odejmowanie ze zmiennej, powinna być ona dokładnie nad 'chance of'. Poza tym pamiętaj, aby wyczyścić bądź ustawić zmienną na 0

Odnośnik do komentarza
https://skript.pl/temat/41481-mobki/#findComment-259644
Udostępnij na innych stronach

  • 0
16 minut temu, Koksu123 napisał:

a bys mogl mi to poprawic aby bylo dobrze?

edit.

@Kormic to wezmiesz mi to zrobisz dobrze?

bo ja mam zawielki wylew

options:
	liczba-szkieletow: 10

every 30 seconds:
	if {nieumarleSzkielety::ilosc} is not set:
		set {nieumarleSzkielety::ilosc} to 0
		broadcast "Ustawiono zmienna!"
	if {nieumarleSzkielety::ilosc} is greater than or equal to {@liczba-szkieletow}:
		broadcast "Zbyt wiele szkieletow!"
		stop
	add 1 to {nieumarleSzkielety::ilosc}
	spawn a wither skeleton at location 100, 100, 100 in world "world"
	set max health of last spawned wither skeleton to 30
	heal last spawned wither skeleton
	set name of last spawned wither skeleton to "&c&lNieumarly Szkielet"
	set tool of last spawned wither skeleton to stone sword of sharpness 10
	broadcast "Szkielet pojawil sie!"

on death of wither skeleton:
	if name of victim is not "&c&lNieumarly Szkielet":
		stop
	remove 1 from {nieumarleSzkielety::ilosc}	
	chance of 5%:
		drop 1 redstone named "&4&lRuna zwiekszonych obrazen" at victim
		
command /czysczmienna:
	trigger:
		set {nieumarleSzkielety::ilosc} to 0

Proszę.

Odnośnik do komentarza
https://skript.pl/temat/41481-mobki/#findComment-259648
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ę...