Hi, I followed the tutorial to how to make a block.
I knowm there is a lot of mod on slime, I just a test.
package net.minecraft.src;
import java.util.Random;
public class Slime_Mod extends BaseMod
{
//Variable
public static int BlockSlimeID = 150;
//Create Block
public static final Block BlockSlime = new Slime_BlockSlime(150, 0).setHardness(0.1F).setResistance(5.0F).setBlockName("SlimeBlock").setLightValue(1F);
//Function
public Slime_Mod()
{
}
public void load()
{
//Register Block
ModLoader.RegisterBlock(BlockSlime);
//Add Block Name
ModLoader.AddName(BlockSlime, "Slime Block");
//Add Recipe
ModLoader.AddRecipe(new ItemStack(BlockSlime, 1), new Object[]{"dd","dd", Character.valueOf('d'),Block.dirt});
//Add Texture
BlockSlime.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SlimeBlock.png");
}
public String getVersion()
{
return "1.0.0";
}
}
package net.minecraft.src;
import java.util.Random;
public class Slime_BlockSlime extends Block
{
public Slime_BlockSlime(int i, int j)
{
super(i, j, Material.wood);
}
public int idDropped(int i, Random random)
{
return Item.slimeBall.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 5;
}
}
I don't know why but my minecraft don't seem to realize that those 2 files are in. I have modloader.
Minecraft doesn't crash, eclipse don't find an error but the mod just don't appear.
Can you help me?
0
I knowm there is a lot of mod on slime, I just a test.
I don't know why but my minecraft don't seem to realize that those 2 files are in. I have modloader.
Minecraft doesn't crash, eclipse don't find an error but the mod just don't appear.
Can you help me?
0
Do you have a solution for this?!