Hi, I am new to modding and was testing a very basic mod where a custom ore drops a custom item. However, I can't find a way to make it generate naturally in the overworld. Some posts I have been looking into point to the following method:
@SubscribeEvent
public static void onInitBiomesGen(WorldTypeEvent.BiomeSize event) {
for (Biome biome : ForgeRegistries.BIOMES) {
biome.addFeature(
GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.func_225566_b_(
new OreFeatureConfig(
OreFeatureConfig.FillerBlockType.NATURAL_STONE, ModBlocks.LYNITE_ORE, 8
)
)
.func_227228_a_(Placement.COUNT_RANGE.func_227446_a_(new CountRangeConfig(1, 0, 0, 16))
)
);
}
}
However, the function
func_225566_b_
and the function
func_227446_a_
don't seem to exist for Forge. They might have gotten a proper name in the last updates, but I can't find any way to know which. What I'm asking for is somewhere to find updated documentation and some help with ore generation. Thank you.
PS.: I know that my code is terrible; I'm not new to Java but I know nothing about modding.