Minecraft Blogs / Tutorial

Create biomes in minecraft Vanilla. (By Florilu the Creator of ExtraBiomesGen Mod)

  • 6,344 views, 0 today
  • 7
  • 4
  • 12
florilu
Level 52 : Grandmaster Programmer
140
In this tutorial I will teach you how to make new biomes in minecraft without ModLoader!
Some guys asked me if I can post a tutorial, and here it is. So here are the steps.

1. Download Minecraft Coder Pack: http://mcp.ocean-labs.de/index.php/MCP_Releases
2. Extract the Minecraft Coder pack files in a folder like "MCP"
3. Download the clean bin and resource Here (If you have by yourself a clean bin and a clean source folder you can use your own)
4. Unpack the .zip in the "jars" folder in MCP, or put your own bin and resource folder in it.
5. Open the minecraft.jar and delete the META-INF.
6. Download and unpack ModLoader in the .jar (This mod doesn't need ModLoader but it makes it compatible with it)
7. Click on the decompile.bat
8. Setup Eclipse (If you would like) Here's a tutorial, how to do http://mcp.ocean-labs.de/index.php/Setting_up_Eclipse_MCP4
9. Code ;)

So we are gonna code this biome.

png

1. You need to open the "BiomeGenBase.java", and the "GenLayerBiome.java".
2. You have to create a "BiomeGenTutorial.java"

3. In "BiomeGenBase.java" you have to write the code
BiomeGenBase.java

public static final BiomeGenBase tutorial = (new BiomeGenTutorial(23)).setColor(353825).setBiomeName("Tutorial").setTemperatureRainfall(0.8F, 1.0F).setMinMaxHeight(0.4F, 0.6F);
/*
* the first variable "tutorial" sets the Variable "tutorial" for adding the biome for example in GenLayerBiome.java.
* The second thing "(new BiomeGenTutorial(23))" declares which class defines the biome "tutorial" and the "23" is the biomeID.
* ".setColor(353825)" sets the color of the biome.
* ".setBiomeName("Tutorial")" sets the displayed name of the biome when you press F3.
* ".setTemperatureRainfall(0.8F, 1.0F)" sets the temperature and the rainfall so "0.8F" is the temperature and "1.0F" is the rainfall.
* ".setMinMaxHeight(0.4F, 0.6F)" sets the minimal and the max height of the biome.
*/

The gray thing is only a declaration.
Then you write in this code in GenLayerBiome.java
GenLayerBiome.java
BiomeGenBase.tutorial

Then you have to write this code in BiomeGenTutorial.java
BiomeGenTutorial.java

package net.minecraft.src;

import java.util.Random;

public class BiomeGenTutorial extends BiomeGenBase
{
public BiomeGenTutorial(int par1)
{
super(par1);
this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 5, 4, 4)); //This string spawns Wolfes
this.theBiomeDecorator.treesPerChunk = 10; //This string sets, how many trees can be generated in one chunk
this.theBiomeDecorator.grassPerChunk = 2; //This string sets, how many grass (high grass) can be in one chunk.
this.topBlock = (byte)Block.blockDiamond.blockID;//This string sets the topblock, here is it a Block made of diamond
this.fillerBlock = (byte)Block.blockDiamond.blockID;
}

/**
* Gets a WorldGen appropriate for this biome.
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return (WorldGenerator)(par1Random.nextInt(5) == 0 ? this.worldGeneratorForest : (par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : this.worldGeneratorTrees)); //this string sets which tree generator the biome uses for trees.
}
}


So then you have to recompile with the recompile.bat then click on the starclient.bat to start and test it.

Hopefully you understood that whole thing, and if you have any questions, ask me.

Oh and btw, if you would like to see everything in the .java files then you can look here.
https://github.com/florilu/Biome-Tutorial--Vanilla-

Cheers:
Florilu
Tags

Create an account or sign in to comment.

superridley
11/06/2014 5:31 pm
Level 1 : New Miner
Okay, this is probably an incredibly stupid question, but how do you "open" a .jar?
1
florilu
11/27/2014 11:39 am
Level 52 : Grandmaster Programmer
With WinRar or WinZip, there are alot of ways to do it.
1
MCVB
01/16/2013 11:42 am
Level 44 : Master Toast
YES! THANK YOU SO MUCH!!!!!!!!!!!
1
ModdingMan55
10/07/2012 10:08 am
Level 43 : Master Grump
Thanks Dude, EPIC
1
florilu
10/07/2012 1:27 pm
Level 52 : Grandmaster Programmer
No problem ;)
1
wilmerkardell
09/13/2012 12:37 pm
Level 37 : Artisan Pixel Painter
And i wanna be in the wiki team :D
1
wilmerkardell
09/13/2012 12:36 pm
Level 37 : Artisan Pixel Painter
This will be usefull :D
1
Herobrine lord
09/06/2012 4:50 am
Level 20 : Expert Mage
OMFG SOOOO COOL
1
JavaBuckets
09/07/2012 11:07 am
Level 80 : Elite Modder
not really btw nice tutorial, im probably also going to make a tutorial on biomes, not in the mood for it now :o
1
florilu
09/07/2012 11:34 am
Level 52 : Grandmaster Programmer
Hey thank you ;) Did you check out my mod? I mean my ExtraBiomesGen Mod ;D?
1

Welcome