Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I have looked through out the forums and on the web for how to register a biome in 1.7.2, but have not found a solution yet.  I have tried all the suggestions.  Decided to ask here for some help.  Here is my registration code.  I have removed all spawn biomes to make it easier to find mine, but when I create a world, says can't find spawn biome.  The biome does get registered with the BiomeDictionary.  Tried with and without the Boolean in the contructor.  Used forge 1047 and this is in 1056.

 

 public static final BiomeGenBase TelvarianBiome = (new TelvarianBiome(75, true)); 

    @EventHandler
    public void preInit(FMLPreInitializationEvent event)
    {
    	//Remove existing spawn biomes for testing purpose
    	BiomeManager.removeSpawnBiome(forest);
	BiomeManager.removeSpawnBiome(taigaHills);
	BiomeManager.removeSpawnBiome(taiga);
	BiomeManager.removeSpawnBiome(plains);
	BiomeManager.removeSpawnBiome(jungleHills);
	BiomeManager.removeSpawnBiome(jungle);
	BiomeManager.removeSpawnBiome(forestHills);

	//New biome ot biome dictionary
	BiomeDictionary.registerBiomeType(TelvarianBiome, Type.FOREST);
	System.out.println("The biome registered yes or no !!!!!!!!!!!!! " + BiomeDictionary.registerBiomeType(TelvarianBiome, Type.FOREST));
        //Add biome as a spawn biome
	BiomeManager.addSpawnBiome(TelvarianBiome);
        System.out.println("Allowed biomes**************** " + WorldChunkManager.allowedBiomes);
    	
    

 

Here is my biome.  Nothing fancy, just trying to get it to work before making more changes.

 

package test.biome;

import net.minecraft.block.Block;
import net.minecraft.entity.passive.EntityHorse;
import net.minecraft.entity.passive.EntityWolf;
import net.minecraft.init.Blocks;
import net.minecraft.world.biome.BiomeGenBase;

public class TelvarianBiome extends BiomeGenBase {

protected static final BiomeGenBase.Height height_telvarian = new BiomeGenBase.Height(0.2F, 0.2F);
  
public TelvarianBiome(int par1, Boolean register) {
	super(par1, register);
	this.setBiomeName("Telvarian Biome"); 

	setHeight(height_telvarian);

	this.topBlock = (Block)Blocks.grass; 
	this.fillerBlock = (Block)Blocks.brick_block;
	this.setTemperatureRainfall(0.8F, 0.4F);
        this.theBiomeDecorator.treesPerChunk = -999;
        this.theBiomeDecorator.deadBushPerChunk = 0;
        this.theBiomeDecorator.reedsPerChunk = 0;
        this.theBiomeDecorator.cactiPerChunk = 0;
        //this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityHorse.class, 5, 2, 6));
        //this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 8, 4, 4)); 

        this.spawnableCaveCreatureList.clear();
        System.out.println("Am I getting to this part of the biome #########################");

        
        
}

}

 

Added 6 biomes and searched several worlds.  Biomes are either not registering, or not being created.  Deleted all code for biomes from mod.  Closing this thread.

 

Still can't find the biome in the overworld, but made a dimension and used my biome and it generates in the new dimension just fine.  Just looks like you can not make a custom biome and select it as a player spawn in biome.  Or I am still missing something on that end.

 

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.