Solved Location Spawning Help

Discussion in 'Plugin Development' started by jthort, Nov 24, 2013.

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

    jthort

    Hey I need to find a way to spawn a small build in a random location in the world. How would I make that build spawn only on the top of the world, not underground or in the sky?
     
  2. Offline

    xTrollxDudex

    jthort
    Check if the bottom block is above world.getHighestBlockY(x, z)
     
  3. Offline

    jthort

    Perfect, didn't know about getHighestBlockY(x, z), Thanks so much
     
Thread Status:
Not open for further replies.

Share This Page