• 0

    posted a message on Help wanted for adding new Biome to mod

    Hey all I'm new to modding and just wanted to see if anyone can help me figure out how to add a new biome. I have looked around but have so far been unsuccessful in actually getting the biome to generate. I used the following to debug and it is saying my biome is registered (just a test biome), but I suspect I need to add the biome to the chunkloader's available biome list somehow before it will actually generate (but I'm not sure how).


    @EventHandler
    	public static void PostInit(FMLPostInitializationEvent event)
    	{
    		List<Biome> alist = ForgeRegistries.BIOMES.getValues();
    		System.out.println("Start");
    		for (Biome b : alist)
    		{
    			System.out.println(b);
    		}
    	}


    Output:

    ...

    [22:51:55] [main/INFO] [STDOUT]: [com.blaz.tutorialmod.Main:PostInit:51]: net.minecraft.world.biome.BiomeMesa@5e2975ca
    [22:51:55] [main/INFO] [STDOUT]: [com.blaz.tutorialmod.Main:PostInit:51]: net.minecraft.world.biome.BiomeMesa@38cf4497
    [22:51:55] [main/INFO] [STDOUT]: [com.blaz.tutorialmod.Main:PostInit:51]: com.blaz.tutorialmod.world.gen.biome.BiomeAshLand@67127bb1



    If you can I would appreciate any pointers, especially if that includes letting me know if I should be extending a particular class or implementing a particular interface and what the most important functions would be.

    Posted in: Modification Development
  • To post a comment, please .