158
Hey everyone I have a highly requested tutorial for you. In this one I will teach you how to make a new biome. (this tutorial will be very easy)
In this we only need 2 classes
mod_diamond
BiomeGendiamond
mod_diamond
obviously we need it to extend basemod and have the load and getversion methods
then in the load method we need
Modloader.addBiome(diamond);
then outside the methods we need
public static final BiomeGenBase diamond = (new BiomeGendiamond(25)).setColor(0xfa9418).setBiomeName("diamond biome");
0xfa9418 is the grass color, and 25 is just the next open biome if you make 2 new biomes you will want 1 to have 25, and 1 to have 26 and so on
after that we are done with our mod_ class and it should look like this
BiomeGendiamond
this is VERY self explanitory. I will explain a little anyways though after I post the finished code
package net.minecraft.src;
import java.util.List;
import java.util.Random;
public class BiomeGendiamond extends BiomeGenBase
{
public BiomeGendiamond(int par1)
{
super(par1);
spawnableCreatureList.clear();
topBlock = (byte)Block.blockDiamond.blockID;
fillerBlock = (byte)Block.blockDiamond.blockID;
biomeDecorator.treesPerChunk = 1;
biomeDecorator.flowersPerChunk = 1;
biomeDecorator.grassPerChunk = 1;
biomeDecorator.deadBushPerChunk = 1;
biomeDecorator.reedsPerChunk = 1;
biomeDecorator.cactiPerChunk = 1;
biomeDecorator.mushroomsPerChunk = 1;
biomeDecorator.clayPerChunk = 1;
biomeDecorator.waterlilyPerChunk = 1;
}}
trees/flowers/grass/bush/reeds/cacti/mushrooms/clay/waterlilly per chunk says how much there is in a 16x16x256 space
filler block is like stone for normal biomes
top block is like grass/dirt for normal biomes
and finally spawnable creature list is what creatures can spawn. Clear means all can spawn there
and then you are finished with your biome!!!
thanks for reading! Leave any error code in the comments along with suggestions for future tutorials,and as always diamond and subscribe!
In this we only need 2 classes
mod_diamond
BiomeGendiamond
mod_diamond
obviously we need it to extend basemod and have the load and getversion methods
then in the load method we need
Modloader.addBiome(diamond);
then outside the methods we need
public static final BiomeGenBase diamond = (new BiomeGendiamond(25)).setColor(0xfa9418).setBiomeName("diamond biome");
0xfa9418 is the grass color, and 25 is just the next open biome if you make 2 new biomes you will want 1 to have 25, and 1 to have 26 and so on
after that we are done with our mod_ class and it should look like this
mod_ finished
package net.minecraft.src;
public class mod_diamond extends BaseMod
{
public static final BiomeGenBase diamond = (new BiomeGendiamond(25)).setColor(0xfa9418).setBiomeName("diamond biome");
public void load()
{
ModLoader.addBiome(diamond);
}
public String getVersion()
{
return "1.2.5";
}
}
public class mod_diamond extends BaseMod
{
public static final BiomeGenBase diamond = (new BiomeGendiamond(25)).setColor(0xfa9418).setBiomeName("diamond biome");
public void load()
{
ModLoader.addBiome(diamond);
}
public String getVersion()
{
return "1.2.5";
}
}
BiomeGendiamond
this is VERY self explanitory. I will explain a little anyways though after I post the finished code
BiomeGendiamond finished
package net.minecraft.src;
import java.util.List;
import java.util.Random;
public class BiomeGendiamond extends BiomeGenBase
{
public BiomeGendiamond(int par1)
{
super(par1);
spawnableCreatureList.clear();
topBlock = (byte)Block.blockDiamond.blockID;
fillerBlock = (byte)Block.blockDiamond.blockID;
biomeDecorator.treesPerChunk = 1;
biomeDecorator.flowersPerChunk = 1;
biomeDecorator.grassPerChunk = 1;
biomeDecorator.deadBushPerChunk = 1;
biomeDecorator.reedsPerChunk = 1;
biomeDecorator.cactiPerChunk = 1;
biomeDecorator.mushroomsPerChunk = 1;
biomeDecorator.clayPerChunk = 1;
biomeDecorator.waterlilyPerChunk = 1;
}}
trees/flowers/grass/bush/reeds/cacti/mushrooms/clay/waterlilly per chunk says how much there is in a 16x16x256 space
filler block is like stone for normal biomes
top block is like grass/dirt for normal biomes
and finally spawnable creature list is what creatures can spawn. Clear means all can spawn there
and then you are finished with your biome!!!
thanks for reading! Leave any error code in the comments along with suggestions for future tutorials,and as always diamond and subscribe!
Tags |
tools/tracking
904244
6
modding-tutorial-6-biomes
Create an account or sign in to comment.
And when I recompile it gets an error with it.Its the exact same name as the new block.....
"fillerblock = (byte)Block.DarkStone.blockID;"
For you to understand this I will need to explain what block. Means
When you say block.(whatever) you are not saying it is a block and this is the name, you are saying it is in the block class and here is the blok name
So if you want to correct this error instead of
Block.darkstone
You do
Mod_yourmodsname.darkstone