Posted May 14, 20214 yr I have a custom biome but when i use /locatebiome on it i get an no biome located withing reasonable distance is have: public class CustomBiome { public static final void registerBiomes() { Logger LOGGER = LogManager.getLogger(); BiomeManager.addAdditionalOverworldBiomes(RegistryKey.create(Registry.BIOME_REGISTRY, new ResourceLocation(Main.MODID,"test_biome"))); ResourceLocation biome = new ResourceLocation(Main.MODID,"test_biome"); LOGGER.info(biome.getPath()); } } public class ModBiomes { public static void init() { BIOMES.register(FMLJavaModLoadingContext.get().getModEventBus()); } public static final DeferredRegister<Biome> BIOMES = DeferredRegister.create(ForgeRegistries.BIOMES, Main.MODID); static { registerBiome("test_biome",BiomeMaker::theVoidBiome); } public static RegistryObject<Biome> registerBiome(String name, Supplier<Biome> biome) { return BIOMES.register(name, biome); } } and in the main class private void setup(final FMLCommonSetupEvent event) { CustomBiome.registerBiomes(); } public Main() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff); ModBiomes.init(); MinecraftForge.EVENT_BUS.register(this); } Also the following file test_biome.json
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.