I am not getting errors when Recompiling but for some reason it will not even add my block anymore. I probably made an extremely stupid error but if you could point it out for me that would be great. here is my code:
(mod_thing.java)
package net.minecraft.src;
public class mod_thing extends BaseMod
{
public static final Block Mud = new BlockMud(160, 0).setBlockName("Mud").setHardness(2F).setResistance(2F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);
public static final Item MudBrick = new ItemMudBrick(5000).setItemName("MudBrick").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Block MudBrickB = new BlockMudBrickB(236, 0).setBlockName("Mud Brick").setHardness(4F).setResistance(4F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep);
public void load()
{
Mud.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/Mud.png");
ModLoader.registerBlock(Mud);
ModLoader.addName(Mud, "Mud");
ModLoader.addSmelting(Mud.blockID, new ItemStack(MudBrick, 1), 0.1F);
ModLoader.addRecipe(new ItemStack(Mud, 4), new Object [] {"#",Character.valueOf('#'), Block.dirt});
}
{
MudBrickB.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/MudBrickBlock.png");
ModLoader.registerBlock(MudBrickB);
ModLoader.addName(MudBrickB, "Mud Brick");
ModLoader.addRecipe(new ItemStack(MudBrickB, 1), new Object [] {"##", "##", Character.valueOf('#'), MudBrick.shiftedIndex});
}
{
MudBrick.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/Mudbrick.png");
ModLoader.addName(MudBrick, "Mud Brick");
}
public String getVersion()
{
return "1.3.2";
}
}
(BlockMud.java)
package net.minecraft.src;
import java.util.Random;
public class BlockMud extends Block
{
public BlockMud(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random, int j)
{
return mod_thing.Mud.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
(BlockMudBrickB.java)
package net.minecraft.src;
import java.util.Random;
public class BlockMudBrickB extends Block
{
public BlockMudBrickB(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return mod_thing.MudBrickB.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
(ItemMudBrick.java)
package net.minecraft.src;
public class ItemMudBrick extends Item
{
public ItemMudBrick(int i)
{
super(i);
maxStackSize = 64;
}
}
So, I am making a mod that would cause cows, pigs, sheep and such to drop poo. Like a chicken drops eggs but less frequent. I am wondering how I would go about doing so. I have already created the item for poo. Any help will be appreciated, thanks
We will be hosting the first Hunger game on this server next weekend, sign up now! we need 12 tributes to fight to the death!
you the IP.
Fill out this application. The ip is : 75.128.240.118:25565
IGN:
AGE:
HAVE YOU READ BOOKS 1-3:
I have a bukkit server and I cant figure out the ip, ive used whatsmyip and all of those things but i never get on, im using localhost right now but i want others on it as well. Help??/
PICTURES?SORRY FOR THE ALL CAPS ITS STUCK :sad.gif:link is broken (but hey i fixed my caps lock problem)link is broken (but hey i fixed my caps lock problem)
OK so I wastrying to log into my minecraft acount so i sent a email to my self saying my account name.But for some reason 2 extra names showed up. 2 People made a minecraft account with my email. im worried i might get hacked. Can someone help?
0
(mod_thing.java)
package net.minecraft.src;
public class mod_thing extends BaseMod
{
public static final Block Mud = new BlockMud(160, 0).setBlockName("Mud").setHardness(2F).setResistance(2F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundGrassFootstep);
public static final Item MudBrick = new ItemMudBrick(5000).setItemName("MudBrick").setTabToDisplayOn(CreativeTabs.tabMaterials);
public static final Block MudBrickB = new BlockMudBrickB(236, 0).setBlockName("Mud Brick").setHardness(4F).setResistance(4F).setCreativeTab(CreativeTabs.tabBlock).setStepSound(Block.soundStoneFootstep);
public void load()
{
Mud.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/Mud.png");
ModLoader.registerBlock(Mud);
ModLoader.addName(Mud, "Mud");
ModLoader.addSmelting(Mud.blockID, new ItemStack(MudBrick, 1), 0.1F);
ModLoader.addRecipe(new ItemStack(Mud, 4), new Object [] {"#",Character.valueOf('#'), Block.dirt});
}
{
MudBrickB.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/textures/MudBrickBlock.png");
ModLoader.registerBlock(MudBrickB);
ModLoader.addName(MudBrickB, "Mud Brick");
ModLoader.addRecipe(new ItemStack(MudBrickB, 1), new Object [] {"##", "##", Character.valueOf('#'), MudBrick.shiftedIndex});
}
{
MudBrick.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/Mudbrick.png");
ModLoader.addName(MudBrick, "Mud Brick");
}
public String getVersion()
{
return "1.3.2";
}
}
(BlockMud.java)
package net.minecraft.src;
import java.util.Random;
public class BlockMud extends Block
{
public BlockMud(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random, int j)
{
return mod_thing.Mud.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
(BlockMudBrickB.java)
package net.minecraft.src;
import java.util.Random;
public class BlockMudBrickB extends Block
{
public BlockMudBrickB(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return mod_thing.MudBrickB.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
(ItemMudBrick.java)
package net.minecraft.src;
public class ItemMudBrick extends Item
{
public ItemMudBrick(int i)
{
super(i);
maxStackSize = 64;
}
}
Please help, thanks :3
0
0
you the IP.
Fill out this application. The ip is : 75.128.240.118:25565
IGN:
AGE:
HAVE YOU READ BOOKS 1-3:
That is all, Thank you
0
0
0
LIKE AND SUBSCRIBE:)
4
0
0
if your'e ok with that.
0
0
Way to read the whole post.
0
0
0
0
Just ignore it.