Solved Zombie teleport

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ThePro1604

Member
May 7, 2021
3
0
1
Im trying to do that on damage to zombie it will randomly teleport to a different block within 10 blocks radius like how enderman teleports
 
Im trying to do that on damage to zombie it will randomly teleport to a different block within 10 blocks radius like how enderman teleports
This might work, I'm not able to test it right now.
Code:
on damage:
    victim is zombie
    loop blocks in radius 10 of victim:
        if loop-block is air:
            add loop-block to {_b::*}
    teleport victim to random element out of {_b::*}
 
Status
Not open for further replies.