public static Codec<ConfigFileControlledAddCarversBiomeModifier> createCodec() {
        return RecordCodecBuilder.create(instance -> instance.group(
                Biome.LIST_CODEC.fieldOf("biomes").forGetter(m -> m.biomes),
                ConfiguredWorldCarver.LIST_CODEC.fieldOf("carvers").forGetter(m -> m.carvers),
                GenerationStep.Carving.CODEC.fieldOf("step").forGetter(m -> m.step),
                Codec.STRING.fieldOf("configKey").forGetter(m -> m.configKey)
        ).apply(instance, ConfigFileControlledAddCarversBiomeModifier::new));
    }
For some reason, Forge does not provide this in {@link BiomeModifiers}. This one also allows for
dynamic control via ProjectRed's mod config file.
exploration/src/main/java/mrtjp/projectred/exploration/world/gen/ConfigFileControlledAddCarversBiomeModifier.java