Jump to content

Errors with Biome


SkillCakey

Recommended Posts

Here:

 

 

 

package com.skillcakey.examplemod.biomegenbase;

 

import com.skillcakey.examplemod.ExampleMod;

 

import net.minecraft.block.Block;

import net.minecraft.init.Blocks;

import net.minecraft.world.biome.BiomeGenBase;

 

public class ExampleBiome extends BiomeGenBase{

 

 

public ExampleBiome(int par1) {

super(par1);

topBlock = ExampleMod.ExampleGrass;

fillerBlock = ExampleMod.ExampleBlock;

}

 

 

}

 

 

Link to comment
Share on other sites

I'll say it again: I can't guarantee you that this method works. For finding your Biome in-game: I don't think there is a better way than just flying around.

 

You can generate a world and find which biome you are spawning in or next to, and then replace that biome temporarily with your custom biome in the biome arrays in the GenLayerBiome.  For instance to work on custom biomes I started a world that had a roofed forest right next to spawn, so I put my biome in the array in place of the roofed forest and the custom biome will generate in it's place if you recreate the world (ie: same seed)

Link to comment
Share on other sites

I set my custom filler and top blocks, but they are air.

Can you show your code? I am not sure about this one.
And is there a way to change how often the biome is generated? :/

I don't think so. At least in 1.6 there wasn't.

 

ACtually YOU CAN make it so that biomes generate more often. Keep adding the same biome into the array multiple times. I noticed the code for minecraft does this which increases the odds of desert over say a mesa biome. The code you gave us is actually REALLY editable.

One other edit that modders should do is creating all 4 fields to make into arrays. It is important to do this so when the biomes are generated they don't appear in odd places. IE: your glacier biome appearing next to a desert.

Link to comment
Share on other sites

  • 1 month later...

i feel like adding this link to another thread here, which is about the same thing, and i just added a comment there, how i did it (including a fully editable copied GenLayerBiome).

I hope you moderators don't mind? I want to help, not to bump :)

http://www.minecraftforge.net/forum/index.php/topic,19194.0.html

btw diesieben07: your code is great thank you, i will try, to do it that way.

Link to comment
Share on other sites

  • 1 month later...

Don't use this method anymore, there is a forge hook for adding Biomes now, see BiomeManager.

(And you can make files inside net.minecraft just fine, but you shouldn't!).

 

Thank you! I got my biome working and found i on the first try using the biome weight!

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.