Witam, mam pytanie, jak zrobić, aby Zombie podczas damage'u rzucało potkę z komendy /potka?
Próbowałem w taki sposób, ale niestety nie działa.
on damage:
if victim is Zombie:
if attacker is player:
make victim shoot an item projectile of Splash potions of Harming named "&fCiekla pajeczyna" at speed 0.5
command /potka:
trigger:
give player Splash potions of Harming named "&fCiekla pajeczyna"
On Shoot:
"%projectile%" contains "potion":
if name of shooter's tool contains "Ciekla":
loop 200 times:
set {_l} to location of projectile
if {_l} is {_ll}:
loop blocks in radius 3:
loop-block is air:
chance of 50%:
set loop-blocks to cobweb
wait 5 second
loop blocks in radius 3:
loop-block is cobweb:
set loop-block to air
wait 0.5 second
stop
wait 1 tick
set {_ll} to location of projectile
wait 1 tick
else:
send "Nope" to all players
else:
send "Nope" to all players
on rightclick:
set {_co} to player's tool
send "%{_co}%" to all players
Pytanie
Kozaczekkw 16
Witam, mam pytanie, jak zrobić, aby Zombie podczas damage'u rzucało potkę z komendy /potka?
Próbowałem w taki sposób, ale niestety nie działa.
on damage: if victim is Zombie: if attacker is player: make victim shoot an item projectile of Splash potions of Harming named "&fCiekla pajeczyna" at speed 0.5 command /potka: trigger: give player Splash potions of Harming named "&fCiekla pajeczyna" On Shoot: "%projectile%" contains "potion": if name of shooter's tool contains "Ciekla": loop 200 times: set {_l} to location of projectile if {_l} is {_ll}: loop blocks in radius 3: loop-block is air: chance of 50%: set loop-blocks to cobweb wait 5 second loop blocks in radius 3: loop-block is cobweb: set loop-block to air wait 0.5 second stop wait 1 tick set {_ll} to location of projectile wait 1 tick else: send "Nope" to all players else: send "Nope" to all players on rightclick: set {_co} to player's tool send "%{_co}%" to all players
Edytowane przez KozaczekkwOdnośnik do komentarza
https://skript.pl/temat/35046-zombie/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
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ą.