NEED HELP WITH MODDING

Sometimes, we all need a little general help.

Post Permalink
by cj1m » 8/12/2012

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);
}
}
Image
User avatar
Level 3
Apprentice Modder
Posts: 178
Joined: 1/15/12
Minecraft: cj1m

Post Permalink
by cesarcesar2 » 8/12/2012

U ppls can steal it and post it
User avatar
Level 11
Journeyman Ninja
Posts: 22
Joined: 7/4/11

Post Permalink
by cj1m » 8/12/2012

what do you mean i wrote this myself i know there are other poo mods but this is my first mod for i test
Image
User avatar
Level 3
Apprentice Modder
Posts: 178
Joined: 1/15/12
Minecraft: cj1m


Return to General Help