• 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    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?
    Posted in: Tutorials
  • 0

    posted a message on HD texture fix [Feb22: 1.3 support, fixed compass]
    The programme work proprely but all my liquid from plasmacraft have diapear!

    Do you have a solution for this?!
    Posted in: Resource Packs
  • To post a comment, please .