I changed the chunk provider
It's two sine waves on the x and z axis. And the nether portal appears whenever you change dimensions, I guess.
-++==========================++-
@Override
public Chunk provideChunk(int x, int z) {
ChunkPrimer chunkprimer = new ChunkPrimer();
IBlockState grass = Blocks.grass.getDefaultState();
IBlockState dirt = Blocks.dirt.getDefaultState();
IBlockState stone = Blocks.stone.getDefaultState();
IBlockState bedrock = Blocks.bedrock.getDefaultState();
IBlockState state;
for(int ix = 0; ix < 16; ++ix) {
for(int iz = 0; iz < 16; ++iz) {
int top = getHeight((x*16)+ix, (z*16)+iz);
chunkprimer.setBlockState(ix, top, iz, grass);
for(int depth=1; depth < top; ++depth) {
if(depth < 10) {
state = dirt; }
else {
state = stone; }
chunkprimer.setBlockState(ix, top-depth, iz, state);
}
chunkprimer.setBlockState(ix, 0, iz, bedrock);
} }
Chunk chunk = new Chunk(this.m_world, chunkprimer, x, z);
return chunk;
}
private int getHeight(int x, int z) {
int xOff = (int) (Math.sin(0.1*(x))*7);
int zOff = (int) (Math.sin(0.07*(z))*10);
return xOff + zOff + 40;
}