private void generatePool(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator,
IChunkProvider chunkProvider) {
//if(chunkX%(1000/16) != 0|| chunkZ%(1000/16) != 0) return;
if(random.nextInt(1000)>100) return;
int x = chunkX*16 + random.nextInt(16);
int z = chunkZ*16 + random.nextInt(16);
int y = world.getPrecipitationHeight(new BlockPos(x,0,z)).getY();
for(int i=0; i<22; i++) {
for(int j=0; j<22; j++) {
world.setBlockState(new BlockPos(x+i,y,z+j), Blocks.CLAY.getDefaultState());
}
}
}
WorldGenRemains.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:InspiringWorld
作者:
评论列表
文章目录