(Minecraft 1.18.1 Forge) In my mod that i am developing, i was able to register new biomes, using the same method to register items or blocks or enity or etc. Since I am registered and trying to generate a world with only one biome, I can view my biome, the world is generated correctly. But when I generate a world in the traditional method, the biome is not generated even if it is present in the list of biomes taken from the Locatebiome command.
I think I am missing something to have the biome spawn, but I don't know where to find it.
Init Biome Class
public class BiomeInit
{
public BiomeInit() {
}
public static final DeferredRegister<Biome> BIOMES = DeferredRegister.create(ForgeRegistries.BIOMES, ImmortalObsidian.MOD_ID);
public static final RegistryObject<Biome> SOBBY_FOREST = BIOMES.register("sobby_forest",
()-> OverworldBiomes.forest(true, true, true));
public static final RegistryObject<Biome> SOBBY_END = BIOMES.register("sobby_planes",
()-> ImmortalObsidianBiomes.sobbyPlanes());
//BiomeLoadingEvent
}
Main Class
@Mod(ImmortalObsidian.MOD_ID)
public class ImmortalObsidian
{
public static final String MOD_ID = "immortalobsidian";
public static final CreativeModeTab OBSDIAN_TAB = new CreativeModeTab(MOD_ID) {
@Override
public ItemStack makeIcon() {
return new ItemStack(Items.OBSIDIAN);
}
};
public ImmortalObsidian()
{
var bus = FMLJavaModLoadingContext.get().getModEventBus();
BlockInit.BLOCKS.register(bus);
ItemInit.ITEMS.register(bus);
EntityInit.ENTITY.register(bus);
BiomeInit.BIOMES.register(bus);
}
}