random int

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

rlatlsgn

Member
Aug 7, 2024
3
0
1
Code:
set {_time} to random number from 7 to 11
every {_time} seconds:
    loop all players:
        if block below loop-player is red wool:
            spawn a zombie at location of loop-player
i want spwan zombie random time(7sec ~ 11)
+ p.s Is it possible to summon zombie it at a random location on the red wool instead of the player's location?
 
Code:
set {_time} to random number from 7 to 11
every {_time} seconds:
    loop all players:
        if block below loop-player is red wool:
            spawn a zombie at location of loop-player
i want spwan zombie random time(7sec ~ 11)
+ p.s Is it possible to summon zombie it at a random location on the red wool instead of the player's location?
You can spawn zombies in a random location on the red wool by looping the coords between that area and then setting random numbers between those coordinates as you'd wish then spawning a zombie at the coords you set.