[HELP] [SKRIPT] Mobs spawning within a radius randomly

  • 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.

Gameeer

Member
Jan 2, 2022
12
0
1
23
Hey so what i want is: every 10 secounds between 0 60 0 and 10 60 10 5 zombies spawn in random spots in that area
If you can do anything to help please do so and reply anyway so it can get boosted <3
 
You could make a function to generate random numbers to use for locations or use the plugin worldguard (I think?) to make regions and work with it
 
Java:
every 10 minutes:

    set {_x} to random number between 5 and 10
    set {_y} to 60
    set {_z} to random number between 0 and 10
    set {_world} to world "world"
   
    set {_location} to location({_x}, {_y}, {_z}, {_world})
   
    spawn zombie at {_location}
 
Status
Not open for further replies.