I've been trying to get some custom ores to spawn in specific biomes. I can get the ores to spawn everywhere but not in a single biome. Does anyone have some example code that I can build off of? Or maybe the emerald ore source code?
If you have a reference to the
you could use the
method to find out what the biome is.
I think I've figured it out!
Thanks for the help CodeShaper!
public static void setupOreGeneration()
Biome swamp = Biomes.SWAMP;
swamp.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(FillerBlockType.NATURAL_STONE, BlockList.bm_block.getDefaultState(), OregenConfig.mana_spawn.get()), Placement.COUNT_RANGE, new CountRangeConfig(5, 1, 0, 63)));