• 1

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

    Help me please! I keep having this error:
    src\minecraft\net\minecraft\src\mod_darkmatter.java:5: error: <identifier> expected
    public static final mod_darkmatter = new darkmatter(i have tried darkmatter and Block)(160,
    ^
    src\minecraft\net\minecraft\src\mod_darkmatter.java:18: error: reached end of file while parsing
    }
    ^
    PLEASE PLEASE HELP ME WITH THIS! :D

    You have two errors:

    this means that it doesn't know what to do with this line:
    public static final mod_darkmatter = new darkmatter(160,

    and it is because you have the "mod_" in a "public static final" line, to fix this you should take out the "mod_" form that line of code, if that doesn't work please look more carefully at the tutorial on blocks

    This means that you need to add a "}" to the file, I would put it at the end first, and if that doesn't work I would rewrite the class.

    Also: in the future please use the code tags and a spoilers, and post ALL of your code along with the error report. Spoilers and code tags can be made like so:
    [spoiler] your text here[/spoiler]

    for spoilers, and code can be made in the same way, just with "code" instead of the brackets instead of "spoiler"
    Posted in: Mapping and Modding Tutorials
  • 1

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

    Help with this!

    package net.minecraft.src;
    public class mod_afruit extends BaseMod
    {
    		public static final Item afruit = new Item(161).setItemName("Fossilsed Fruit");
    	  
    		public void load()
    		{
    				ItemAFruit.shiftedIndex = ModLoader.addOverride("/gui/items.png", "/mods/fruit.png");
    				ModLoader.addName(afruit, "Fossilised Fruit");
    				ModLoader.addRecipe(new ItemStack(afruit, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
    		}
    	  
    		public String getVersion()
    		{
    				return "1.2.4";
    		}
    }


    Error report

    I believe that it is because you have "ItemAFruit" and you should have "afruit" (yes java is case sensitive) also, on this line:
    public static final Item afruit = new Item(161).setItemName("Fossilsed Fruit");

    I think you need the add a "afruit" so that it looks like this:
    public static final Item afruit = new Itemafruit(161).setItemName("Fossilsed Fruit");


    Quote from harrisonthegreat

    ok i got a new error i know what it is it can't find the texture in the folder i specified so can someone please tell me what i should write here
    Namehere.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/pathtoyourfile/image.png");
    and excactly where i should put my png's for testing not for final version (just tell me what you do when your testing)

    In MCP: go to jars/bin/minecraft.jar then make a folder in the minecraft.jar, name it whatever you want, and put your pictures into it. Then just replace the "pathtoyourfile" to the name of the folder you made.
    Posted in: Mapping and Modding Tutorials
  • 1

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

    When I try to recompile, with my new food coded I get this error:
    == MCP 6.1 (data: 6.1, client: 1.2.4, server: 1.2.4) ==
    # found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa
    ram csvs, astyle, astyle config
    == Recompiling client ==
    > Cleaning bin
    > Recompiling
    '"C:\Program Files\Java\jdk1.7.0_01\bin\javac" -Xlint:-options -deprecation -g -
    source 1.6 -target 1....' failed : 1
    
    == ERRORS FOUND ==
    
    src\minecraft\net\minecraft\src\mod_RedstonePlus.java:9: error: constructor Item
    RedstoneDrink in class ItemRedstoneDrink cannot be applied to given types;
    public static final Item RedstoneDrink = new ItemRedstoneDrink(5001, 10, 1F, fal
    se).setItemName("Redstone Drink");
    										 ^
    
      required: int
      found: int,int,float,boolean
      reason: actual and formal argument lists differ in length
    1 error
    ==================
    
    !! Can not find server sources, try decompiling !!


    I believe that this is because you have
    public static final Item RedstoneDrink = new ItemRedstoneDrink(5001, 10, 1F, fal
    se).setItemName("Redstone Drink");

    instead of
    public static final Item RedstoneDrink = new ItemFood(200, 10, 1F, fal
    se).setItemName("Redstone Drink");

    But it is difficult to tell without looking at the code.

    Quote from doogadude

    I'm having problems again, this time attempting to use my own materials in the crafting recipe.
    This is the mod file for the thing I want it to be crafted with


    package net.minecraft.src;

    public class mod_PlainUmbrella extends BaseMod
    {
    public static final Item PlainUmbrella = new ItemPlainUmbrella(489).setItemName("PlainUmbrella");

    public void load()
    {
    PlainUmbrella.iconIndex = ModLoader.addOverride("/gui/items.png", "/batman/plainumbrella.png");
    ModLoader.addName(PlainUmbrella, "Plain Umbrella");
    ModLoader.addRecipe(new ItemStack(PlainUmbrella, 1), new Object [] {"###", " @ ", "@@ ", Character.valueOf('#'), new ItemStack (Block.cloth, 1, 15), Character.valueOf('@'), Item.ingotIron});
    }

    public String getVersion()
    {
    return "1.2.4";
    }
    }
    This is the item file for the thing I want to craft it with


    package net.minecraft.src;

    public class ItemPlainUmbrella extends Item
    {
    public ItemPlainUmbrella(int i)
    {
    super(i);
    maxStackSize = 64;
    }
    }
    This is the mod file for the thing I want to craft


    package net.minecraft.src;

    public class mod_RazorUmbrella extends BaseMod
    {
    public static final Item RazorUmbrella = new ItemRazorUmbrella(496).setItemName("RazorUmbrella");

    public void load()
    {
    RazorUmbrella.iconIndex = ModLoader.addOverride("/gui/items.png", "/pathtoyourfile/image.png");
    ModLoader.addName(RazorUmbrella, "Razor Umbrella");
    ModLoader.addRecipe(new ItemStack(RazorUmbrella, 1), new Object [] {"#@#", Character.valueOf('#'), Item.ingotIron, Character.valueOf('@'), PlainUmbrella });
    }

    public String getVersion()
    {
    return "1.2.4";
    }
    }
    And this is the item file for the thing I want to craft.


    package net.minecraft.src;

    public class ItemRazorUmbrella extends Item
    {
    public ItemRazorUmbrella(int i)
    {
    super(i);
    maxStackSize = 64;
    }
    public int getDamageVsEntity(Entity par1Entity)
    {
    return 7;
    }
    }
    Please help.
    Thanks.

    You should combine your mod_ files into one file, then it will work better.
    Posted in: Mapping and Modding Tutorials
  • 1

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

    would you be able to write a tut on Potion and Fences please i need these codes so badly

    Quote from demcmd

    I really need that tool tutorial :L

    Well out of all the tutorials that Techguy is planing do do:
    • Crop
    • Generating ores
    • Tool with own Enum(no base class editing(like all my tuts))
    • Throwable Item
    • Potion
    • Armour
    • Bow
    • Damage Value Blocks
    • Trees
    • Door, Fence, Lever type block
    I don't really need the: "Generating ores, Armour, Damage Value Blocks, or the Door, Fence, Lever type block" ones, but all the other ones I want, and please don't take this wrong but: We (and yes, that includes me) should be grateful for the ones that he has done so far, because he isn't getting anything for all the time he spends helping us, so please don't complain about the ones that he hasn't done yet.
    -Thank You-
    Posted in: Mapping and Modding Tutorials
  • 1

    posted a message on TechGuy's Modding Tutorials

    Hey TechGuy,why im getting this,
    Mac-mini-de-camilo-saraiva:mcp56 20-41-08 camilosaraiva$ bash recompile.sh
    == MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) ==
    > Recompiling client...
    > Done in 20.39 seconds
    > Recompiling server...
    !! Can not find server sources !!
    Mac-mini-de-camilo-saraiva:mcp56 20-41-08 camilosaraiva$ bash startclient.sh
    == MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) ==
    [13:29:31] 27 achievements
    [13:29:31] 174 recipes
    [13:29:32] ModLoader 1.1 Initializing...
    [13:29:32] Mod Initialized: mod_Dumahim 1.1
    [13:29:32] Mod Initialized: mod_DumahimAdult 1.1
    [13:29:32] Mod Initialized: mod_Kain 1.1
    [13:29:32] Mod Initialized: mod_KainSoulReaver 1.1
    [13:29:32] Failed to load mod from "mod_PowerBolt.class"
    [13:29:32] Mod Initialized: mod_Soul 1.1
    [13:29:32] Mod Initialized: mod_SoulReaver 1.1
    [13:29:32] Mod Loaded: mod_Dumahim 1.1
    [13:29:32] Mod Loaded: mod_DumahimAdult 1.1
    [13:29:32] Mod Loaded: mod_Kain 1.1
    [13:29:32] Overriding /gui/items.png with /pics/KainSoulReaver.png @ 38. 85 left.
    [13:29:32] Mod Loaded: mod_KainSoulReaver 1.1
    [13:29:32] Overriding /gui/items.png with /pics/Soul.png @ 102. 84 left.
    [13:29:32] Mod Loaded: mod_Soul 1.1
    [13:29:32] Overriding /gui/items.png with /pics/SoulReaver.png @ 118. 83 left.
    [13:29:32] Mod Loaded: mod_SoulReaver 1.1
    [13:29:32] Done.
    [13:29:32] Loading: net.java.games.input.OSXEnvironmentPlugin
    [13:29:32]
    [13:29:32] Starting up SoundSystem...
    [13:29:32] Initializing LWJGL OpenAL
    [13:29:32] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
    [13:29:33] OpenAL initialized.
    [13:29:33]
    [13:29:34] java.lang.RuntimeException: java.lang.Exception: Image not found: /pics/KainSoulReaver.png
    [13:29:34] at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356)
    [13:29:34] at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069)
    [13:29:34] at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18)
    [13:29:34] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
    [13:29:34] at net.minecraft.client.Minecraft.run(Minecraft.java:634)
    [13:29:34] at java.lang.Thread.run(Thread.java:680)
    [13:29:34] Caused by: java.lang.Exception: Image not found: /pics/KainSoulReaver.png
    [13:29:34] at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007)
    [13:29:34] at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348)
    [13:29:34] ... 5 more
    [13:29:34] Stopping!
    [13:29:34]
    [13:29:34] SoundSystem shutting down...
    [13:29:34] Author: Paul Lamb, www.paulscode.com
    [13:29:34]
    [13:29:42]
    Mac-mini-de-camilo-saraiva:mcp56 20-41-08 camilosaraiva$
    First when i recompile, it's all fine but when i run minecraft in the startclient or the eclipse don't open !!!!!
    Pleae answear me!!
    Thanks! And i use a tut of the bow. Link
    And how i make my mobs drop xp orbs ?

    Well it says that the problem was caused by an 'Image not found[at]: /pics/KainSoulReaver.png' which means that the picture in the folder 'pics' in the minecraft.jar file is not called (and it has to be case specific) 'KainSoulReaver' or the picture isn't a PNG.
    Posted in: Mapping and Modding Tutorials
  • 2

    posted a message on [1.4.7] Koadmaster's Mods [Modloader]
    Quote from Weaponguy117

    hey i just thought of something. because lapis lazuli is really rare, why not do something where you use it to get experience? somewhat like the bottle o' enchanting in the snapshot. except that it will give more orbs than the bottle. the bottle just gave 2-3.

    Interesting thought, I kind of like it, I may make this (if I can figure out how to do it :smile.gif: )

    EDIT: Thought: I could make it so that lapis tools (namely pickaxe) would only last for like 20 blocks but could mine them instantly! (just a thought)
    Posted in: Minecraft Mods
  • 1

    posted a message on [1.4.7] Koadmaster's Mods [Modloader]
    Quote from Sigia

    Yeah, it works now. If you want to expand on the pumpkin thing, you could always make more types of pumpkins, thus making more pies. Weebl and Bob would be overwhelmed.

    I wasn't thinking to do more on pumpkins as the idea of this mod is to make a rather useless item more useful. I was thinking that my other mods could do this same thing for like, rotting flesh? I am working on getting a mod on that, but it will probably be a while before it comes out.
    Quote from Weaponguy117

    there might be a problem with putting a torch which is brighter than glowstone. glowstone glows at light level 15. the maximum light level possible. you might be able to make a mod for a torch which glows at 15 and illuminates a larger radius but i am not sure that is possible.

    That sounds hard, but I may make it in the far future
    Quote from SofusTheGreat

    Awesome, I'll download it now :3

    um, you may have the wrong version so if you find that they don't restore the correct amount of hunger just get the new one (I think that it is right)
    Posted in: Minecraft Mods
  • 1

    posted a message on Minecraft set to be reporting Metadata back to Mojang
    If you all hate the idea of sending info to mojang you could just disconnect from your internet and play offline.
    Posted in: 1.1 Update Discussion
  • 1

    posted a message on Inprove maps
    First of all this isn't meant to be a big complaining tread but I think that it would be a good idea.

    You should have a way to make maps that are copies of a map that you have previously explored because it is a pain when you go out with your map and die a long way from spawn and therefor lose your map because you don't have another map that has that location on it. I think that Mojang should make a recipe that allows for the copying of maps something like that of the original map recipe but with an Ink Sack in it or something to that effect.
    I would appreciate some response.
    -Thank You-
    Posted in: Discussion
  • 1

    posted a message on Why I stopped playing minecraft
    Quote from JoekerJoe

    If you stopped playing minecraft why are you still on the minecraft forums?



    That is the best thing I've heard on this topic yet :smile.gif: :smile.gif:
    Posted in: 1.0 Update Discussion
  • To post a comment, please .