Okay now firstly these aren't in depth tutorials they are only coding snippets with labels that tell you what they equal, down below will be a list of snippets which will tell you what class and which method to put the snippet under to get it to work.
Also please be mindful that these snippets are up to date with Minecraft Version 1.5.1
==SNIPPETS==
Existing File - Your Mod File || Method - load(FMLInitializationEvent event)
package MyModsPackage;
import java.util.Random;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;
public class WorldGenOres implements IWorldGenerator
{
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
switch(world.provider.dimensionId)
{
case 1 : generateSurface(world, random, chunkX * 16, chunkZ * 16);
case 2 : generateNether(world, random, chunkX * 16, chunkZ * 16);
case 3 : generateEnd(world, random, chunkX * 16, chunkZ * 16);
}
}
private void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 80/**Rarity**/; i++)
{
int xCoord = chunkX + random.nextInt(16);
int yCoord = random.nextInt(128/**Max Height**/);
int zCoord = chunkZ + random.nextInt(16);
(new WorldGenMinable(ID/**The ID of Your Block**/, 8/**Size of the Veins**/)).generate(world, random, xCoord, yCoord, zCoord);
}
}
private void generateNether(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 80/**Rarity**/; i++)
{
int xCoord = chunkX + random.nextInt(16);
int yCoord = random.nextInt(128/**Max Height**/);
int zCoord = chunkZ + random.nextInt(16);
(new WorldGenMinable(ID/**The ID of Your Block**/, 8/**Size of the Veins**/)).generate(world, random, xCoord, yCoord, zCoord);
}
}
private void generateEnd(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 80/**Rarity**/; i++)
{
int xCoord = chunkX + random.nextInt(16);
int yCoord = random.nextInt(128/**Max Height**/);
int zCoord = chunkZ + random.nextInt(16);
(new WorldGenMinable(ID/**The ID of Your Block**/, 8/**Size of the Veins**/)).generate(world, random, xCoord, yCoord, zCoord);
}
}
}
If you do use any of these snippets please post down below saying that you did otherwise I'd just think it's pointless updating these and adding anymore.
Also please be mindful that these snippets are up to date with Minecraft Version 1.5.1
==SNIPPETS==
Existing File - Your Mod File || Method - load(FMLInitializationEvent event)
New File - WorldGenOres
If you do use any of these snippets please post down below saying that you did otherwise I'd just think it's pointless updating these and adding anymore.
Thanks
CrazyBloodwing
P.S.
Spread the Word
Biomes
Dimensions
Surface generation
Nether generation
End generation
Blocks
Items
Achievements
Custom sounds
Custom music
Custom block step sounds
Colorful item names
Enchantment effects
Shapeless recipes
Recipes
Furnace smelting recipes
Advanced blocks
Advances items
Brewing recipes
And even more
Just some tips to help you become famous in the feature!
Thanks.