you know how to make a multipe ore generate i wrote
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_OreMobs extends BaseMod{
{}
public void load(){
}
public static final Block SummonOre = new SummonOre(162,0).setBlockName("SummonOre").setHardness(3F).setResistance(3F);
public static final Block SummonOreKing = new KingSummonOre(163,0).setBlockName("SummonOreKing").setHardness(3F).setResistance(3F);
public static final Item ManSummoner = new ManSummoner(190).setItemName("ManSummoner");
public static final Item KingSummoner = new KingSummoner(191).setItemName("KingSummoner");
//registerBlocks
public void addRenderer(Map map){
map.put(EntityMan.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public void addRenderer1(Map map){
map.put(EntityKing.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public void generateSurface(World world,Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 15; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(64) + 0;
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(SummonOre.blockID,25)).generate(world, random, randPosZ, randPosY, randPosX);
}
}
public void generateSurface1(World world,Random random, int chunkX, int chunkZ)
{
for(int k = 0; k < 15; k++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(64) + 0;
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(SummonOreKing.blockID,15)).generate(world, random, randPosZ, randPosY, randPosX);
}
}
World world;
this is what i wrote and its didnt work(i mean the multipe ore generate)
hello welcome to my minecraft modding Tutorial's series and the tutorial's are for minecraft 1.2.4 and i will upgrade it to the next Version only when it come's out i hope you will learn from my tutorials and i will thank you very much if you will suscribe my Youtube Channel here:http://www.youtube.c...38?feature=mhee
Setting up mcp:
Making new Block:
Codes:
mod_Tutorial.java:
package net.minecraft.src;
public class mod_Tutorial extends BaseMod
{
public static final Block TutorialBlock = (new Tutorial(160, 0)).setBlockName("TestBlock").setHardness(3F).setResistance(3F).setLightValue(2F);
public void load()
{
TutorialBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Blocks/MoonBlock.png");
ModLoader.registerBlock(TutorialBlock);
ModLoader.addName(TutorialBlock, "Tutorial");
ModLoader.addRecipe(new ItemStack(TutorialBlock, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
public String getVersion()
{
return "1.2.4";
}
}
Tutorial.java:
package net.minecraft.src;
import java.util.Random;
public class Tutorial extends Block
{
public Tutorial(int par1, int par2)
{
super(par1, par2, Material.rock);
}
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int par1, Random par2Random, int par3)
{
return mod_Tutorial.TutorialBlock.blockID;
}
}
Future Tutorials:
new Item
new mob
ore generation
new tool set
thats what i planned for the next tutorials maybe i will add: generate Scutures by clicking a block and i will make a tutorial about how to make a new biome
hello welcome to my minecraft modding Tutorial's serious and the tutorial's are for minecraft 1.2.4
and i will upgrade it to the next Version only when it come's outi hope you will learn from my tutorials and i will thanks you very much if you will suscribe my Youtube Channel here:http://www.youtube.c...38?feature=mhee
0
0
0
import java.util.Map;
import java.util.Random;
public class mod_OreMobs extends BaseMod{
{}
public void load(){
}
public static final Block SummonOre = new SummonOre(162,0).setBlockName("SummonOre").setHardness(3F).setResistance(3F);
public static final Block SummonOreKing = new KingSummonOre(163,0).setBlockName("SummonOreKing").setHardness(3F).setResistance(3F);
public static final Item ManSummoner = new ManSummoner(190).setItemName("ManSummoner");
public static final Item KingSummoner = new KingSummoner(191).setItemName("KingSummoner");
//registerBlocks
{}
public mod_OreMobs()
{
ManSummoner.iconIndex = ModLoader.addOverride("/gui/items.png", "/OreMobs/ManSpawner.png");
SummonOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/OreMobs/OreMan.png");
SummonOreKing.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/OreMobs/OreKing.png");
KingSummoner.iconIndex = ModLoader.addOverride("/gui/items.png", "/OreMobs/KingSpawner.png");
}
{
//Names
ModLoader.addName(ManSummoner, "ManEgg");
ModLoader.addName(KingSummoner, "KingEgg");
//Recipes
ModLoader.addRecipe(new ItemStack(KingSummoner, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
//Render Mob
public void addRenderer(Map map){
map.put(EntityMan.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public void addRenderer1(Map map){
map.put(EntityKing.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public void generateSurface(World world,Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 15; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(64) + 0;
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(SummonOre.blockID,25)).generate(world, random, randPosZ, randPosY, randPosX);
}
}
public void generateSurface1(World world,Random random, int chunkX, int chunkZ)
{
for(int k = 0; k < 15; k++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(64) + 0;
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(SummonOreKing.blockID,15)).generate(world, random, randPosZ, randPosY, randPosX);
}
}
World world;
0
0
for example:
public class ItemSpade extends ItemTool
{
private static Block blocksEffectiveAgainst[];
public ItemSpade(int par1, EnumToolMaterial par2EnumToolMaterial)
{
super(par1, 1, par2EnumToolMaterial, blocksEffectiveAgainst);
}
/**
* Returns if the item (tool) can harvest results from the block type.
*/
public boolean canHarvestBlock(Block par1Block)
{
if (par1Block == Block.snow)
{
return true;
}
return par1Block == Block.blockSnow;
}
static
{
blocksEffectiveAgainst = (new Block[]
{
Block.grass, Block.dirt, Block.sand, Block.gravel, Block.snow, Block.blockSnow, Block.blockClay, Block.tilledField, Block.slowSand, Block.mycelium,Block.cake
});
}
}
shovel class name=ItemSpade.java
0
hello welcome to my minecraft modding Tutorial's series and the tutorial's are for minecraft 1.2.4
and i will upgrade it to the next Version only when it come's out i hope you will learn from my tutorials and i will thank you very much if you will suscribe my Youtube Channel here:http://www.youtube.c...38?feature=mhee
Setting up mcp:
Making new Block:
Codes:
mod_Tutorial.java:
public class mod_Tutorial extends BaseMod
{
public static final Block TutorialBlock = (new Tutorial(160, 0)).setBlockName("TestBlock").setHardness(3F).setResistance(3F).setLightValue(2F);
public void load()
{
TutorialBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Blocks/MoonBlock.png");
ModLoader.registerBlock(TutorialBlock);
ModLoader.addName(TutorialBlock, "Tutorial");
ModLoader.addRecipe(new ItemStack(TutorialBlock, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
public String getVersion()
{
return "1.2.4";
}
}
package net.minecraft.src;
import java.util.Random;
public class Tutorial extends Block
{
public Tutorial(int par1, int par2)
{
super(par1, par2, Material.rock);
}
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int par1, Random par2Random, int par3)
{
return mod_Tutorial.TutorialBlock.blockID;
}
}
new Item
new mob
ore generation
new tool set
thats what i planned for the next tutorials maybe i will add: generate Scutures by clicking a block and i will make a tutorial about how to make a new biome
0
0
hello welcome to my minecraft modding Tutorial's serious and the tutorial's are for minecraft 1.2.4
and i will upgrade it to the next Version only when it come's outi hope you will learn from my tutorials and i will thanks you very much if you will suscribe my Youtube Channel here:http://www.youtube.c...38?feature=mhee
Setting up mcp:
0
0
0
0
what to do?????