Skip to content

Instantly share code, notes, and snippets.

@NeusFear
Created April 21, 2019 19:25
Show Gist options
  • Save NeusFear/86bef9ef2123cbf9f8354a536291014a to your computer and use it in GitHub Desktop.
Save NeusFear/86bef9ef2123cbf9f8354a536291014a to your computer and use it in GitHub Desktop.
@Override
public void populate(World world, MutableBlockVolume buffer, ImmutableBiomeVolume biomes) {
for (int x = buffer.getBlockMin().getX(); x <= buffer.getBlockMax().getX(); x++) {
for (int z = buffer.getBlockMin().getZ(); z <= buffer.getBlockMax().getZ(); z++) {
if(draw(x) && draw(z)) {
for(int y = getDefaultDepth(x, z); y < getDefaultHeight(x, z); y++) {
if (genYet(x, z)) {
buffer.setBlockType(x, y, z, BlockTypes.STONE);
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment