1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Skript' started by Gameeer, Jul 16, 2022.

Thread Status:
Not open for further replies.
  1. Gameeer

    Gameeer New Member

    Joined:
    Jan 2, 2022
    Messages:
    6
    Likes Received:
    0
    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
     
  2. MiiTsY

    MiiTsY Member

    Joined:
    May 27, 2022
    Messages:
    41
    Likes Received:
    1
    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
     
  3. KingAdmin_YT

    KingAdmin_YT Member

    Joined:
    May 16, 2018
    Messages:
    28
    Likes Received:
    0
    Code (Java):
    1. every 10 minutes:
    2.  
    3.     set {_x} to random number between 5 and 10
    4.     set {_y} to 60
    5.     set {_z} to random number between 0 and 10
    6.     set {_world} to world "world"
    7.    
    8.     set {_location} to location({_x}, {_y}, {_z}, {_world})
    9.    
    10.     spawn zombie at {_location}
     
Thread Status:
Not open for further replies.

Share This Page

Loading...