• 0

    posted a message on TechGuy's Modding Tutorials
    When I try to start the client(after recompiling), it says that it failed to open the mod_test class. What should I do
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Quote from sebc722

    ... It seems like we are going in circles here :P Post an error log


    This is the error: http://imgur.com/ATlTv
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    The problem is that I've already done it, but I get some errors, like ''Testblock isn't a variable'' or something like that
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Can someone do(make ?) me a favor ?

    If possible someone could make a modloader basic file class(only with the block information) and a block class, and post it here for download so I could check what I am doing wrong. Can someone do it ? :)
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    I think I'll give up. I tried again, but when I recompile it is saying a lot of errors that I can't understand why they're happening.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    But why ''BlockStone'' ?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Wait, wrong code.

    package net.minecraft.src;
    public class mod_test extends BaseMod
    {
    public static final Block TestBlock = new Block(160, 0).setBlockName("Test Block").setHardness(3F).setResistance(4F).setLightValue(1F);
     public void load()
     {
      ModLoader.addName(testblock,"Test Block");
      ModLoader.registerBlock(testblock);
      testblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/russo/testblock.png");
      ModLoader.addRecipe(new ItemStack(testblock,1), new Object []{ "X", Character.valueOf('X'), Block.dirt});
     }
     public String getVersion()
      {
        return "1.2.5";
     }
    }


    It is saying that it cannot find the variable ''testblock'', but am I using it as variable ? I didn't understand...
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Well, I am almost there.

    But I am having problems with this block code:

    package net.minecraft.src;
    import java.util.Random;
    public class BlockTestBlock extends Block
    {
      public BlockTestBlock(int i, int j)
      {
       super(i, j, Material.rock);
      }
    
     public int idDropped(int i, Random random, int j)
     {
      return mod_Block.TestBlock.blockID;
     }
     public int quantityDropped(Random random)
     {
    	return 3;
     }}
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Well, I installed it, but I'll try it again.

    This link is for JDK 7, but the best one is the JDK 6, isn't it ?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    When I try to install Eclipse, it says:

    ''Failed to load the JNI shared library ''C:\Program Files(x86)\Java\jdk(1.6.0)\bin\...\jre\bin\client\jvm.dll"
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    When I save as .java I get a lot of errors, saying that it cannot find the variable ''ModLoader'', ''BaseMod'', etc.

    What should I do ?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    I edited the code.

    When I try to recompile I get this error:

    ''class BlockTestBlock is public, should be declared in a file named BlockTestBlock.java public class BlockTestBlock extends Block''

    What does it mean ?

    And one more doubt: How should I save the modloader basic file and the block file ? ''mod_test.class, BlockTestblock.class" or ''mod_test.java, BlockTestblock.java" ?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Yeah I made it. I forgot to post the code:

    EDIT:
    package net.minecraft.src;
    public class mod_test extends BaseMod
    {
    	 public static final Block testblock = new testblock(225, 0).setBlockName("Test Block").setHardness(3F).setResistance(20F).setLightValue(20F);
     
    	 public void load()
      {
    	  testblock.blockIndexInTexture = ModLoader.addOverride("terrain.png", "/russo/emeraldOre.png");
       ModLoader.registerBlock(testblock);
       ModLoader.addName(testblock, "Test Block");
       ModLoader.addRecipe(new ItemStack(testblock, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
      
      }
     
      public String getVersion()
      {
    	  return "1.2.5";
     
      }
    }

    And in this code, can you explain me how can I decide how many items/blocks will drop ? Like I want my block to drop 3 dirts. Can I do it ?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Quote from yorael

    , On the 5th line, write "public static final Block testblock" and not "public static final Block TestBlock" ;) capitals are important too, if it still doesn't work I'll try something different ^^


    Well, I tried this and.. nothing. So I tried to rewrite the code, and... nothing. The same problem, I can't craft the item, and probably the item doesn't even exist.

    The mod_test class:

    package net.minecraft.src;
    public class mod_test extends BaseMod
    {
    	 public static final Block testblock = new testblock(225, 0).setBlockName("Test Block").setHardness(3F).setResistance(20F).setLightValue(20F);
    
    	 public void load()
    {
    	 testblock.blockIndexInTexture = ModLoader.addOverride("terrain.png", "/russo/testblock.png");
    ModLoader.registerBlock(testblock);
    ModLoader.addName(testblock, "Test Block");
    ModLoader.addRecipe(new ItemStack(testblock, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
    
    }
    
    public String getVersion()
    {
    	 return "1.2.5"
    
    }
    }
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on TechGuy's Modding Tutorials
    Quote from leorusso23

    I concluded that I am dump or something like that. I did exactly what you said, but it didn't work.
    The code:

    package net.minecraft.src;
    public class mod_teste extends BaseMod
    {
    public string getVersion()
    {
    	 return "1.2.5."
    }
    public static final Block TestBlock = new Block(225,0,Material.rock).setHardness(2.5F).setResistance(20F).setLightValue(20F).setBlockName("Test Block");
    {
    slipperiness = 1.2F;
    }
    public void load()
    {
    ModLoader.addName(testblock,"Test Block")
    ModLoader.registerBlock(testblock)
    testblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/russo/testblock.png");
    ModLoader.addRecipe(new ItemStack(testblock,1), new Object [] { "X", 'X', Character.valueOf('X'), Block.dirt});
    }
    }



    What should I do about that ?
    Posted in: Mapping and Modding Tutorials
  • To post a comment, please .