I decided to try and make a mod for the first time so all i was trying to do was make a poo block but when i run the client in eclipse the block doesnt show up in the creative menu or when i type /give.
PLEASE HELP * I AM USING MCP AND MODLOADER
here is the code for mod_pooblock.java
package net.minecraft.src;
public class mod_pooblock extends BaseMod{
public static final Block poo = (new poo(247, ModLoader.addOverride("/terrain.png", "/poo/poo.png") ).setHardness(5F).setResistance(5F).setBlockName("poo").setStepSound(Block.soundGravelFootstep));
}
public String getVersion() {
return "Poo block Mod 1.3.1";
}
public void load() {
ModLoader.registerBlock(poo);
ModLoader.addName(poo, "poo");
}
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int a= 0; a < 20; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_pooblock.poo.blockID, 12)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
and here is the code for poo.java
package net.minecraft.src;
public class poo extends Block
{
protected poo(int par1, int par2)
{
super(par1, par2, Material.ground);
this.setCreativeTab(CreativeTabs.tabBlock);
}
}
PLEASE HELP * I AM USING MCP AND MODLOADER
here is the code for mod_pooblock.java
package net.minecraft.src;
public class mod_pooblock extends BaseMod{
public static final Block poo = (new poo(247, ModLoader.addOverride("/terrain.png", "/poo/poo.png") ).setHardness(5F).setResistance(5F).setBlockName("poo").setStepSound(Block.soundGravelFootstep));
}
public String getVersion() {
return "Poo block Mod 1.3.1";
}
public void load() {
ModLoader.registerBlock(poo);
ModLoader.addName(poo, "poo");
}
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int a= 0; a < 20; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_pooblock.poo.blockID, 12)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
and here is the code for poo.java
package net.minecraft.src;
public class poo extends Block
{
protected poo(int par1, int par2)
{
super(par1, par2, Material.ground);
this.setCreativeTab(CreativeTabs.tabBlock);
}
}
2
what do you mean i wrote this myself i know there are other poo mods but this is my first mod for i test
U ppls can steal it and post it
