@@ -0,0 +1,1689 @@
+package com.hea3ven.buildingbricks.compat.vanilla;%0A%0Aimport net.minecraft.init.Blocks;%0Aimport net.minecraft.util.BlockPos;%0A%0Aimport net.minecraftforge.event.terraingen.PopulateChunkEvent;%0Aimport net.minecraftforge.fml.common.eventhandler.SubscribeEvent;%0A%0Apublic class GrassSlabWorldGen %7B%0A%0A%09@SubscribeEvent%0A%09public void asd(PopulateChunkEvent.Pre event) %7B%0A%09%09BlockPos startPos = new BlockPos(event.chunkX %3C%3C 4, 0, event.chunkZ %3C%3C 4);%0A%09%09for (int xOff = 0; xOff %3C 16; xOff++) %7B%0A%09%09%09for (int zOff = 0; zOff %3C 16; zOff++) %7B%0A%09%09%09%09BlockPos pos = startPos.add(xOff, 0, zOff);%0A%09%09%09%09while (pos.getY() %3C 255%0A%09%09%09%09%09%09&& event.world.getBlockState(pos).getBlock() != Blocks.grass) %7B%0A%09%09%09%09%09pos = pos.up();%0A%09%09%09%09%7D%0A%09%09%09%09if (pos.getY() %3E= 255)%0A%09%09%09%09%09continue;%0A%0A%09%09%09%09pos = pos.up();%0A%09%09%09%09int top = 0;%0A%09%09%09%09if (event.world.getBlockState(pos.north()).getBlock() == Blocks.grass)%0A%09%09%09%09%09top++;%0A%09%09%09%09if (event.world.getBlockState(pos.east()).getBlock() == Blocks.grass)%0A%09%09%09%09%09top++;%0A%09%09%09%09if (event.world.getBlockState(pos.south()).getBlock() == Blocks.grass)%0A%09%09%09%09%09top++;%0A%09%09%09%09if (event.world.getBlockState(pos.west()).getBlock() == Blocks.grass)%0A%09%09%09%09%09top++;%0A%09%09%09%09pos = pos.down();%0A%09%09%09%09int bottom = 0;%0A%09%09%09%09if (event.world.getBlockState(pos.north()).getBlock() == Blocks.grass)%0A%09%09%09%09%09bottom++;%0A%09%09%09%09if (event.world.getBlockState(pos.east()).getBlock() == Blocks.grass)%0A%09%09%09%09%09bottom++;%0A%09%09%09%09if (event.world.getBlockState(pos.south()).getBlock() == Blocks.grass)%0A%09%09%09%09%09bottom++;%0A%09%09%09%09if (event.world.getBlockState(pos.west()).getBlock() == Blocks.grass)%0A%09%09%09%09%09bottom++;%0A%09%09%09%09if (top != 0 && (top - bottom) %3E=-2) %7B%0A%09%09%09%09%09event.world.setBlockState(pos.up(),%0A%09%09%09%09%09%09%09ModBuildingBricksCompatVanilla.grassSlab.getDefaultState(), 2);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D%0A

add grass slab world gen