Advertisement
Scouter456

Untitled

Sep 25th, 2022
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.86 KB | None | 0 0
  1.     @Override
  2.     protected boolean carveBlock(CarvingContext carvingContext, CaveCarverConfiguration caveCarverConfiguration, ChunkAccess chunkAccess, Function<BlockPos, Holder<Biome>> holderBiome, CarvingMask carvingMask, BlockPos.MutableBlockPos mutableBlockPos, BlockPos.MutableBlockPos mutableBlockPos2, Aquifer aquifer, MutableBoolean mutableBoolean) {
  3.         BlockState blockstate;
  4.         blockstate = CAVE_AIR;
  5.         chunkAccess.setBlockState(mutableBlockPos, blockstate, false);
  6.         mutableBlockPos2.setWithOffset(mutableBlockPos, Direction.DOWN);
  7.         if (chunkAccess.getBlockState(mutableBlockPos2).is(MFBlocks.CLOUD.get())) {
  8.             blockstate = STONE;
  9.             mutableBlockPos.setWithOffset(mutableBlockPos, Direction.DOWN);
  10.             chunkAccess.setBlockState(mutableBlockPos, blockstate, false);
  11.         }
  12.         return true;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement