Set spawn to 0, 0

Discussion in 'Plugin Development' started by NadDeMan, Jan 30, 2021.

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

    NadDeMan

    How can I set spawn at a world to 0,0 without knowing what the y is?
     
  2. Offline

    Strahan

    Are you doing it programmatically? If so, you can do:
    Code:
    int yLocation = worldObject.getHighestBlockYAt(new Location(worldObject, 0, 0, 0));
    EDIT: That was a dumb question, I forgot I was in the plugin dev section lol :)
     
  3. Offline

    Zettos

    In a for loop, ask whether the block is air
     
Thread Status:
Not open for further replies.

Share This Page