Solved Help in setting a random location between 2 cordinets

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

Zenbawww

Member
Dec 25, 2023
1
0
1
hi i really need help with setting up a random place that mob can spawn in a rea between cordinets can someone help me?
 
Last edited:
Idk know if this works. I’m on my mobile phone. Tell me if it does
code_language.skript:
every 1 second:
  loop all players:
    if loop-player has 32 conduit:
      delete 32 conduit from loop-player's inventory
      give loop-player conduit with mending 10 named "&2&lCompressed conduit"
 
hi i really need help with setting up a random place that mob can spawn in a rea between cordinets can someone help me?
You could do something like this:
Code:
every 2 minutes:
  set {spawny} to a random number between -100 and 100
  set {spawnx} to a random number between -100 and 100
  set {spawnz} to a random number between -100 and 100
  spawn 10 zombies at "%{spawnx}% %{spawny}% %{spawnz}%"
Again, on my phone, don’t know if it works