// Stupid ore gen stuff from cloth api because mojang ruined the wiki ore gen RegistryKey> GOTOSAVIUM_ORE_KEY = RegistryKey.of(Registry.CONFIGURED_FEATURE_WORLDGEN, new Identifier("gotosav:gotosavium_ore")); RegistryKey> SPARSE_GOTOSAVIUM_ORE_KEY = RegistryKey.of(Registry.CONFIGURED_FEATURE_WORLDGEN, new Identifier("gotosav:sparse_gotosavium_ore")); RegistryKey> DENSE_GOTOSAVIUM_ORE_KEY = RegistryKey.of(Registry.CONFIGURED_FEATURE_WORLDGEN, new Identifier("gotosav:dense_gotosavium_ore")); DynamicRegistryCallback.callback(Registry.BIOME_KEY).register((manager, key, biome) -> { if(biome.getCategory() != Biome.Category.THEEND && biome.getCategory() != Biome.Category.NETHER) { BiomesRegistry.registerFeature(manager, biome, GenerationStep.Feature.UNDERGROUND_ORES, GOTOSAVIUM_ORE_KEY); BiomesRegistry.registerFeature(manager, biome, GenerationStep.Feature.UNDERGROUND_ORES, SPARSE_GOTOSAVIUM_ORE_KEY); BiomesRegistry.registerFeature(manager, biome, GenerationStep.Feature.UNDERGROUND_ORES, DENSE_GOTOSAVIUM_ORE_KEY); } });