• 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from Soulsbane96 »
    Quote from Joshj5hawk »
    Quote from eejin »
    For other tutorials what about making a new ore or maybe mobs ?

    I'm not 100% sure without seeing you're code, but I THINK that you need it on the line under it, or you may even have an extra one. Show me your code when you get a chance and I'll let you know =]


    i think he was suggesting that you make more tutorials about making a new ore or making new mobs

    oh oops, wrong quote xD
    But yes I plan on doing tutorials on that in the future.
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from eejin »
    For other tutorials what about making a new ore or maybe mobs ?

    I'm not 100% sure without seeing you're code, but I THINK that you need it on the line under it, or you may even have an extra one. Show me your code when you get a chance and I'll let you know =]
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from MiniatureLimo »
    Uhh, welll see here, I've a problem. I used your Box as a template, and my block recompiles nicely, but when I go to
    reobfuscate it, it freaks out and gives me this. :S



    Any ideas?
    I'm going to try redownloading MCP and some other stuff... :S

    Yea, I'd try redling MCP because I've honestly never seen that error before =\
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from Tjaden »
    Quote from Joshj5hawk »
    Quote from Tjaden »
    -snip-

    This is so annoyying, I'm having to make the second material out of a basic item for the time being.

    You don't need two mod_ files =] and make sure your Block files are BlockBlah.java



    Sorry it's still quite not working, this is my compile log now:
    == MCP v3.1 ==
    > Recompiling client...
    javac.exe -g -verbose -classpath "jars/bin/minecraft.jar;jars/bin/jinput.jar;jar
    s/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecr
    aft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minecraft\isom\*
    .java src/minecraft\net\minecraft\src\*.java  conf/patches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    src\minecraft\net\minecraft\src\mod_Fireproofwood.java:29: class mod_Fireproofpl
    ank is public, should be declared in a file named mod_Fireproofplank.java
    public class mod_Fireproofplank extends BaseMod
    ^
    
    src\minecraft\net\minecraft\src\mod_Fireproofwood.java:36: cannot find symbol
    symbol  : variable fireproofwood
    location: class net.minecraft.src.mod_Fireproofplank
    "#X#", Character.valueOf('#'), fireproofwood, Character.valueOf('X'), Item.redst
    one
    ^
    
    2 errors
    ==================
    
    > Done in 2.57 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .


    And then this is the one mod_Fireproofwood file:
    package net.minecraft.src;
    
    import java.util.Random;
    
    public class mod_Fireproofwood extends BaseMod
    {
       public mod_Fireproofwood()
       {
          ModLoader.RegisterBlock(Fireproofwood);
          ModLoader.AddName(Fireproofwood, "Fire Proof Wood");
          ModLoader.AddRecipe(new ItemStack(Fireproofwood, 2), new Object[] {
             "X", "#", Character.valueOf('X'), Block.sapling, Character.valueOf('#'), Item.redstone
          });
       }
       
       public static Block Fireproofwood;
       
       static
       {
          Fireproofwood = new BlockFireproofwood(109, ModLoader.addOverride("/terrain.png", "/tjaden/blocks/trunk.png")).setHardness(0.6F).setResistance(2.0F).setBlockName("Fireproofwood");
       }
    
       public String Version()
       {
          return "Fireproofwood 1.0";
       }
    }
    
    public class mod_Fireproofplank extends BaseMod
    {
       public mod_Fireproofplank()
       {
          ModLoader.RegisterBlock(Fireproofplank);
          ModLoader.AddName(Fireproofplank, "Fire Proofed Plank");
    	  ModLoader.AddRecipe(new ItemStack(Fireproofplank, 4), new Object[] {
              "#X#", Character.valueOf('#'), fireproofwood, Character.valueOf('X'), Item.redstone
           });
        }
    	   
       public static Block Fireproofplank;
       
       static
       {
          Fireproofplank = new BlockFireproofplank(110, ModLoader.addOverride("/terrain.png", "/tjaden/blocks/wood.png")).setHardness(0.5F).setResistance(0.5F).setBlockName("Fireproofplank");
       }
    
       public String Version()
       {
          return "Fireproofplank 1.0";
       }
    }


    And then the two Block files are called:


    "BlockFireproofwood.java"
    "BlockFireproofplank.java"

    Sorry this is turning out to be a right pain.

    Not a problem at =] I'll help out more when I get home from work =]
    Posted in: Tutorials
  • 0

    posted a message on The .class files for 1.5?
    he wanted a list of them... not the class files....
    He basically wants to know what the deobfuscated class files are.

    On-Topic, Check out MCP and learn how to use it is the best I can give you :3 good luck though!
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from Tjaden »
    -snip-

    This is so annoyying, I'm having to make the second material out of a basic item for the time being.

    You don't need two mod_ files =] and make sure your Block files are BlockBlah.java
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from Tjaden »
    OK so, I have made two blocks the second block can only be created by combining the first block with another material. When I defined the name for the first block in the recipe for the second block I get this error:

    == MCP v3.1 ==
    > Recompiling client...
    javac.exe -g -verbose -classpath "jars/bin/minecraft.jar;jars/bin/jinput.jar;jar
    s/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecr
    aft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minecraft\isom\*
    .java src/minecraft\net\minecraft\src\*.java  conf/patches/*.java failed.
    Return code : 1
    
    == ERRORS FOUND ==
    
    src\minecraft\net\minecraft\src\mod_Fireproofplank.java:12: cannot find symbol
    symbol  : variable FireproofwooD
    location: class net.minecraft.src.Block
    {"X", "#", Character.valueOf('X'), Block.FireproofwooD, Character.valueOf('#'),
    Item.redstone});
    ^
    
    1 error
    ==================
    
    > Done in 3.88 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Press any key to continue . . .


    I have tried so many different syntaxes case sensitivitys and so on, Also this happens on some items which are by default already in the game.

    Anyone know what to do?

    Block.FireproofwooD
    remove the Block. =]
    and make it fireproofwood
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from eejin »
    Give us the full code please ?

    I did give you the full code, in the original post o.O
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from Doonyolyo »

    Thank you :biggrin.gif:
    And I will be able to do Items, Mobs, Ore Generation, and tools, I'm still working on Gui related stuff myself =]

    Can't wait for the item guide, I'll need it to finish a part of my mod. Your guides are the only updated guides I can find though, so I'll have to wait. Hopefully not too long. :tongue.gif:

    about 7 hours =] Then I'll have the Item guide up :3
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from celticguy08 »
    That was pretty informative and straightforward, good job and I can't wait for the item tutorial. Also if you continue this it would be pretty cool if you made a tutorial on tools, gui-ed blocks (like a crafting table), ore generation and stuff like that. I know I would benefit from it alot especially for those just learning java like myself.

    -Celtic

    Thank you :biggrin.gif:
    And I will be able to do Items, Mobs, Ore Generation, and tools, I'm still working on Gui related stuff myself =]
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from Doonyolyo »
    Hi, I followed everything in the guide as far as I can tell, only changing names, block attributes, folder names etc.
    I have my two classes in the jar, I have modloader in the jar, and META-INF deleted. Please help with this. :smile.gif:
    Mods loaded: 1
    ModLoader Beta 1.5_01v3
    
          Minecraft has crashed!      
          ----------------------      
    
    Minecraft has stopped running because it encountered a problem.
    
    If you wish to report this, please copy this entire text and email it to [email protected]
    Please include a description of what you did when the error occured.
    
    
    
    --- BEGIN ERROR REPORT 1b5dcd51 --------
    Generated 5/11/11 7:25 PM
    
    Minecraft: Minecraft Beta 1.5_01
    OS: Windows Vista (x86) version 6.0
    Java: 1.6.0_25, Sun Microsystems Inc.
    VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
    LWJGL: 2.4.2
    OpenGL: Intel 965/963 Graphics Media Accelerator version 2.0.0 - Build 7.15.10.1537, Intel
    
    java.lang.ExceptionInInitializerError
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    	at java.lang.reflect.Constructor.newInstance(Unknown Source)
    	at java.lang.Class.newInstance0(Unknown Source)
    	at java.lang.Class.newInstance(Unknown Source)
    	at ModLoader.addMod(ModLoader.java:201)
    	at ModLoader.readFromClassPath(ModLoader.java:1061)
    	at ModLoader.init(ModLoader.java:741)
    	at ModLoader.AddAllRenderers(ModLoader.java:120)
    	at sd.<init>(sd.java:60)
    	at sd.<clinit>(sd.java:9)
    	at net.minecraft.client.Minecraft.a(SourceFile:282)
    	at net.minecraft.client.Minecraft.run(SourceFile:658)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 7890
    	at to.<init>(SourceFile:242)
    	at to.<init>(SourceFile:256)
    	at BlockPrimal.<init>(Unknown Source)
    	at mod_Primal.<clinit>(Unknown Source)
    	... 15 more
    --- END ERROR REPORT 8aea47e3 ----------

    What ID did ya use for your block?
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from swisscows »
    Can you help me?

    When I run startclient.bat Minecraft opens then it tells me it can't find the image file when trying to override it and crashes. But I am positive it is in the correct place (the same as the video)

    did you put it in the temp folder? also make sure in your setOverride you start with "/blah blah", "/Blah blah"
    make sure you have the slashes :3
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Got it!
    add a )
    spidersilk = new BlockSpiderSilk(203, ModLoader.addOverride("/terrain.png", "/joeyjam/blocks/silkblock.png"))
    like that :biggrin.gif:
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from joeyjam »
    Quote from Joshj5hawk »
    Did you name your block BlockItemsilk or BlockItemSilk?

    As in, in my .class file? I named it BlockSpiderSilk, but capitalising it like that hasn't worked...

    show me you're BlockSpiderSilk ;3
    Posted in: Tutorials
  • 0

    posted a message on [Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
    Quote from Pavel233 »
    Help again :smile.gif:

    I want to add new item, and gives this error:

    *** Minecraft Coder Pack Version 2.12 ***
    MCP 2.12 running in C:\mcp
    Compiling Minecraft
    sources\minecraft\net\minecraft\src\mod_Derevo.java:22: cannot find symbol
    symbol  : constructor Item(int,int)
    location: class net.minecraft.src.Item
              derevoIngot = new Item(1000, ModLoader.addOverride("/gui/items.png", "
    /derevo/derevoingot.png")).setItemName("derevoingot");
                            ^
    1 error
    Compiling Minecraft Server
    === MCP 2.12 recompile script finished ===

    mod_Derevo
    package net.minecraft.src;
    
    import java.util.Random;
    
    public class mod_Derevo extends BaseMod
    {
       public mod_Derevo()
       {
          ModLoader.RegisterBlock(derevo);
          ModLoader.AddName(derevo, "Ore Derevo");
    	  ModLoader.AddName(derevoIngot, "Derevo Ingot");
    	  
    	  ModLoader.AddSmelting(derevo.blockID, new ItemStack(derevoIngot, 1));
       }
       
       public static Block derevo;
       public static Item derevoIngot;
       
       static
       {
          derevo = new BlockDerevo(200, ModLoader.addOverride("/terrain.png", "/derevo/derevo.png")).setHardness(0.5F).setResistance(5.0F).setBlockName("derevo");
    	  derevoIngot = new Item(1000, ModLoader.addOverride("/gui/items.png", "/derevo/derevoingot.png")).setItemName("derevoingot");
       }
    
       public String Version()
       {
          return "derevo 1.1";
       }
    }

    Items are a little different =] I will show that in a video tonight =]
    Posted in: Tutorials
  • To post a comment, please .