Efficient way to make mobs spawn around player

  • 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 comminuty!

    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.

Fluffy i Am

Member
Dec 26, 2018
4
0
1
22
Hello!

I'm currently making a skript that involves spawn of zombies, does anyone know how i can make them spawn around the player without making the server working overtime for it to work?

Thanks :emoji_slight_smile:
 
this is a skript i made that makes 2-3 zombies spawn in a radius of 5 blocks around the player every 30 seconds
Code:
every 30 seconds:
    loop all players:
        loop (random integer between 2 and 3) times:
            loop blocks in radius 5 around loop-player:
                if loop-block is not loop-player's location:
                    spawn zombie at loop-block
 
this is a skript i made that makes 2-3 zombies spawn in a radius of 5 blocks around the player every 30 seconds
Code:
every 30 seconds:
    loop all players:
        loop (random integer between 2 and 3) times:
            loop blocks in radius 5 around loop-player:
                if loop-block is not loop-player's location:
                    spawn zombie at loop-block
Is there anyway to make sure they don’t spawn inside blocks and suffocate?
 
Status
Not open for further replies.