1

NEED HELP WITH MODDING

cj1m 8/12/12 6:10 am
209
8/12/2012 6:59 am
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);
}
}
Posted by
cj1m
Level 10 : Journeyman Modder
16

  Have something to say?

JoinSign in

2

cj1m
08/12/2012 6:59 am
Level 10 : Journeyman Modder
what do you mean i wrote this myself i know there are other poo mods but this is my first mod for i test
1
cesarcesar2
08/12/2012 6:48 am
Level 24 : Expert Spelunker
U ppls can steal it and post it
1

Welcome