Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider)
- {
- int blockX = chunkX * 16;
- int blockZ = chunkZ * 16;
- BlockPos topBlock = world.getTopSolidOrLiquidBlock(new BlockPos(blockX, 90, blockZ));
- System.out.println("Top block: " + topBlock.getX() + ", " + topBlock.getY() + ", " + topBlock.getZ());
- world.setBlockState(topBlock, Blocks.NETHER_BRICK.getDefaultState());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement