Generate Chunks

Discussion in 'Plugin Development' started by Razorcane, Jan 31, 2012.

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

    Razorcane

    Is there an object to help with chunk generation? Say I wanted a command that generates chunks, based on x and y inputs. Would this be possible with any objects?
     
  2. Offline

    Steeveeo

    http://jd.bukkit.org/apidocs/org/bukkit/World.html#regenerateChunk(int, int)

    Keep in mind, though, that the variables are the chunk location, not exact location (if I remember right, of course). So, if you have a Location, use location.getBlock().getChunk() to get to the chunk you want to regenerate, and then use chunk.getX() and .getZ() as the variables in world.regenerateChunk(int x, int z).
     
Thread Status:
Not open for further replies.

Share This Page