Jump to content

Custom Biome not generating


eggpasta

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.