Jump to content

Recommended Posts

Posted

Ok, so I have one problem left with my mod after updating it from 1.6.4, and that is biomes. I have been pushing it back for a while since I have researched for a while and I couldn't find anything. So anyways in my declaration section all I have is

 

    public static BiomeGenBase NioBiome;

 

and in the load section I have

 

    NioBiome = new NioBiome(100);

    BiomeManager.desertBiomes.add(new BiomeEntry(NioBiome, 100));

 

 

and in my class file I have

 

 

package mymod.biome;

 

import net.minecraft.block.Block;

import net.minecraft.entity.monster.EntityCreeper;

import net.minecraft.entity.monster.EntityEnderman;

import net.minecraft.entity.monster.EntityGiantZombie;

import net.minecraft.init.Blocks;

import net.minecraft.world.biome.BiomeGenBase;

 

public class NioBiome extends BiomeGenBase

{

    public NioBiome(int par1)

    {

        super(par1);

       

        this.setBiomeName("The Nio");

       

        this.topBlock = (Block)Blocks.redstone_block;

        this.fillerBlock = (Block)mymod.main.Main.MyBlock_2;

       

        this.theBiomeDecorator.treesPerChunk = 8;

        this.theBiomeDecorator.bigMushroomsPerChunk = 15;

        this.theBiomeDecorator.generateLakes = true;

 

        this.spawnableCreatureList.add(new SpawnListEntry(EntityCreeper.class, 20, 5, 15));

        this.spawnableCreatureList.add(new SpawnListEntry(EntityEnderman.class,15, 8, 12));

                this.spawnableCreatureList.add(new SpawnListEntry(EntityGiantZombie.class,20, 1, 5));

 

       

        this.setMinMaxHeight(0.9F, 1.3F);

        this.setTemperatureRainfall(0.5F, 1.0F);

 

    }

 

private void setMinMaxHeight(float f, float g) {

// TODO Auto-generated method stub

 

}

 

}

 

If there is a way to add biomes without having to create a new world type please let me know!

 

Thanks in advance!

 

 

Posted

Try with it not being a desert biome.

Ok I finally found my biome, but the filler block is not there and it is not the height I would like it to be

Ok fixed everything, just used already set heights and I wasn't loading the biomes in pre init

 

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.