Added: 7 months ago
From: HenryTheCoder
Views: 28,071
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (547)

Sign In or Sign Up now to post a comment!
  • plz can you make a 1.1 version of this

    

  • The first Line'public class mod_m extends BaseMod'

    Always have va Error under mod_m And it always make modloader crash... Any help?

  • does this work for minecraft 1.1 as well? or not?

  • How do i make food in 1.1

  • @gidro1998 the same thing just don't use the Mod Loader template instead use this:

    package net.minecraft.src;

    public class mod_ModNameHere extends BaseMod {

    public mod_ModNameHere(){

    } @Override public String getVersion() { return "1.1"; } @Override public void load() { }

    }

  • @REG4FUN Nevermind because i already know how to know. But thanks anyway.

  • Guys, in the main mod class, add the extention .setAlwaysEdible() and it should work.

  • Comment removed

  • Comment removed

  • Comment removed

  • Comment removed

  • **Edit Fixed ^_^...Also for Minecraft 1.1 In the mod_Item.java file the "public class mod_Item extends BaseMod" should look like this: "public abstract class mod_Item extends BaseMod"

  • @KyleAVU is everything else the same?

  • My damn Minecraft Takes 4 hours to launch :,(

  • Thanks, now I know where to put my image

  • does it work for 1.0.0

    

  • @ToroAnimations no it does not work for either 1.0.0 or 1.1.0

  • GAH I CAN'T FIND OUT WHERE TO PUT THE ;! ITS SO ANNOYING!!!!!!!

  • @TheDragonmi Come back when you know java please. Any good coder should know where to put ; instantly.

    @Everyone else Stop spamming saying "It doesn't work :(" or "Help me!" or "Or does the work for Minecraft 1.1 / 1.0" Work it out for yourself. Stop using tutorials and learn java. You aren't learning what the code does.

    @HenryTheCoder Very nice HQ tutorial, explain the code so skids can learn

  • I NEED HELP! IT DOESN'T WORK FOR 1.0.0

  • @TheDragonmi

    what i mean is that the cmd says that it needs a semicolem (soz spelt wrong) and i can't find the place

  • @TheDragonmi

    never mind

  • @TheDragonmi

    now it needs a { in the line

    class Item itemwtf extends item

  • @TheDragonmi

    like the name of my item? :)

  • does this still works the same with 1.0.0? plz repply

  • Someone help! I finished it all but when i click on startclient.bat it says could not load or find main class Start does anyone know what to do?

  • Henry, you should make a download for Edit rocket, unless people google windows 7 edit rocket, or whatever platform they are using.

  • I fixed my MCP, your the best Henry! Nice tutorials! Awesome non-shitty mic and soothing voice lol your awesome bro!

  • how to make an arrow item and have it shot

  • 1.0.0 updates please!!!

  • i has no start client

  • OMG IM DOWN TO 1 ERROR!

  • i did this, 17 errors :(

  • @nerfparty im down to 4 errors i started with 15

  • Is there someone out there that can make a tut on how to add the new eating effect when you eat the food????

  • wut would be crafting value?

  • 1.0.0?

    

  • windows wrong with it?

  • Does anyone know how I would make it so that zombies have a chance of poisoning you and the item that im making would heal you from the poison and make you immune for two minecraft days?

  • @Lilnugzz cool idea yea

  • Comment removed

  • Can anyone provide a 1.0 food mod tutorial video link please?

  • @StackofPorkchops its the same ;)

  • @StackofPorkchops This tut was made 11 months and 6 days ago. Also a note for all the dimwits out there if it works for 1.8.1 it works for 1.0.0!

  • @sterrenman10 Nope, he ment if you put the heal amount to a negative numer it will drain health from you instead of healing you :)

  • thats more complected then the last one i saw

  • I have problems applying this to a sword and at the same time making the weapon Durability lower when the above effect of adding health accours. Can anyone help?

  • @ProdukcjaPatriko Your on the wrong tut

  • does it work on 1.0.0

    

  • @jaonhdnres you are better off looking at a 1.0.0 tutorial. A few things have changed since 1.8.

  • I got no errors but it just my mod item doesnt appear when i use the right assigned crafting materials. any help?

  • I have no errors, but my item does not appear in game when I craft it. Please help

  • The final error i cant get rid of

    == ERRORS FOUND ==

    src/minecraft/net/minecraft/sr­c/mod_dustDiamond.java:12: valueOf(char) in java.lang.Character cannot be applied to (java.lang.String)

    "^", Character.valueOf("^"), Item.diamond

    ^

    1 error

    ==================

  • @SuperCrazyRam1 Change "Character.valueOf("^")", to: "Character.valueOf('^')" Remember the single brackets!

  • narrowed it down to this

    src/minecraft/net/minecraft/sr­c/CraftingManager.java:252: cannot find symbol

    symbol : variable dustDiamond

    location: class net.minecraft.src.Item

    "X", "#", Character.valueOf('X'), Item.dustDiamond, Character.valueOf('#'), Item.stick

    ^

    src/minecraft/net/minecraft/sr­c/mod_dustDiamond.java:12: valueOf(char) in java.lang.Character cannot be applied to (java.lang.String)

    "B", Character.valueOf("B"), Item.diamond

    ^

  • I need a bit of help, I've gotten rid of most of my errors, but after about half an hour I just can't see, to fix this last one:

    warning: [options] bootstrap class path not set in conjuction with -source1.6 src\minecraft\net\minecraft\sr­c\mod_Item.java:8: error: invalid method declaration; return type required

    public mod_Item()

    ^

    If anyone could help me out, it's be a real help. Thanks.

  • @Peytonp8 did you ever get it fixed thats what mine sayes can you help me out if you fixed it

  • @JigglyPacMan Yeah, on this guys video on how to add recipes, and TheBase360 commented on how to fix it. It worked, but now it's not locating the item's picture when I startclient, so something does not want me to have my mod...

  • src/minecraft/net/minecraft/sr­c/mod_dustDiamond.java:6: cannot find symbol

    symbol : method setItemName(java.lang.String)

    location: class net.minecraft.src.ItemdustDiam­ond

    public static final Item itemdustDiamond = new ItemdustDiamond(6341).setItemN­ame("dustDiamond");

    ^

    src/minecraft/net/minecraft/sr­c/mod_dustDiamond.java:12: valueOf(char) in java.lang.Character cannot be applied to (java.lang.String)

    "B", Character.valueOf("B"), Item.diamond

    ^

    please help!

  • src/minecraft/net/minecraft/sr­c/ItemdustDiamond.java:8: cannot find symbol

    symbol  : variable maxStackSize

    location: class net.minecraft.src.ItemdustDiam­ond

    maxStackSize = 64;

    ^

    src/minecraft/net/minecraft/sr­c/mod_dustDiamond.java:4: net.minecraft.src.mod_dustDiam­ond is not abstract and does not override abstract method load() in net.minecraft.src.BaseMod

    public class mod_dustDiamond extends BaseMod

    ^

  • src/minecraft/net/minecraft/sr­c/ItemdustDiamond.java:3: cannot find symbol

    symbol: class item

    public class ItemdustDiamond extends item

    ^

    src/minecraft/net/minecraft/sr­c/CraftingManager.java:252: cannot find symbol

    symbol : variable dustDiamond

    location: class net.minecraft.src.Item

    "X", "#", Character.valueOf('X'), Item.dustDiamond, Character.valueOf('#'), Item.stick

    ^

  • @ScratchedTrucks on the part with

    public String getVersion()

    { return "3.14159265";

    }

    Try This instead Replace the 3.14159265 with 1.0.0

  • i dont have startclient.sh i have test_game.sh but it doesnt work. im running 1.0.0

  • When I recompile, it works fine. When I start the client, it says "Failed to load mod from "mod_EasyExchange.class". Minecraft crashes after this. Any ideas anyone?

  • I need help with the item class,

    package net.minecraft.src;

    public class ELingot extends BaseMod

    { public ELingot (int i) { super (i); maxStackSize = 64; } public String getVersion() { return "3.14159265"; }

    }

    But i get a error? Im running 1.0.0

  • @ScratchedTrucks you need the new mod loader template, just google it and you'll be good!

  • Comment removed

  • For servers you would use bukkit instead of modloader, correct?

  • WtF....When I DEcompile I get a Start.class(in Bin/minecraft)

    Then when I REcompile I lose it and It says

    Error: Could not find or load main class Start

    -.-.-.-.-.-.-.- pls tell me what to do :(

  • He lost me at item. 0.0

  • @HenryTheCoder Henry,

    how do you use your own items in recipes? I really need to know for my mod. Hope you reply :D

  • @DaMinecraftPeople Just use whatever the items name is like "public static Item BLAH = ...." Just use BLAH "Character.valueOf('X'), BLAH" And there ya go.

  • @DaMinecraftPeople You would replace something like "block.dirt" with something like this: "mod_zovyingot.itemZovyIngot" (This is part of my recipe for a Zovystone tool using its ingot.)

  • I'm useing Eclipes and at Character.valueOf it says eror under valueOf.

    HHHHHHHEEEEEELLLLLLPPPP MMMMMMMMMMEEEEEEEEEE!!!!!!!

    PPPPPPPPPPPPPPPLLLLLLLLLLLLLLL­EEEEEEEEEEEEAAAAAAAAAAAAASSSSS­SSSSSSSEEEEEEEEE

  • @HenryTheCoder

    I writing the same things as you, but i still got errors.. and i can't fix them.. plz help me

  • @henrythecoder

    Im just wondering Henry, I tried adding crafting recipes for tools using an item that I created (using this tut) and it recompiles and loads the game but doesn't let me craft them, could you help me out?

  • I'm encountering issues, and I'm using NetBeans btw, that the variable, or I'd assume class, ModLoader isn't in the src with the other 800 something Java files. In addition to that, class BaseMod doesn't exist. Any help?

  • Hi Henry can you do a video of adding a terminal Output for when you eating a food item

    Like say you ate something desgusting it would say

    "ewww thats revolting"

  • why don't you use eclipse?

  • bets TUT ever!!!

  • how would i be able to make it so i can tame custom mobs with my food item

  • make an updated tutorial.... so it heals hunger and adds the eating animation

  • SOMEBODY please help when i go to run startclient CMD just comes up and no minecraft, it says something like could not find main class: start. program will exit. 

  • @SuperNovaManatee you need to re compile without errors

  • @SuperNovaManatee

    Thats happened to me before,dont worry, its nothing to do with the coding.

    Back up your coding and download mcp again, decompile like before, and try again. Hope I helped. :)

  • When I create my new item, everything works fine, but my texture is displaying as slime balls. I have my texture destination set correctly but it is just not displaying when I create it or it is in my inventory.

  • My texture turns into a lether helmet in game ?

  • Y don't just type:

    public int getHealAmount(){

    return 3;

    }

    Would be much easier!

  • Ok, this doesn't work for me. When I do the "bash startclient.sh" it doesn't work but I figure that's just so you can check up on the mod then when I recompile at the end it comes up with an error. Any suggestions?

  • Comment removed

  • @disguisedninjas Thanks, also do you know why when decompiling the bin folder no Start.class shows up in the src folder? I am not able to test my mod due to that.

  • @TheGuildGamers That just means you didn't name your mod exactly: mod_food

    Remember, Java is case sensitive.

  • How would I create a fuel like coal,except it's my item that burns? Thanks.

  • Now how do I make the recipe a 1x2 instead of a 2x1...

  • @StarlettsProduction "*", "*" instead of "**"

  • i did everything you said and did but when i open the game and log onto my world and do the recipe nothing comes up :(?

  • @ReadyToPwn1 you have to click rebosufucate or whatever and install it to your client

  • @xXYousernameXx i do but the recomthingy says i got a kton of errors so... :\

  • hello everone,

    i got error by starting client:

    could not find start.class file.

    how can i fix it?!

  • Henry u have 1.7.3

    and i use 1.8 so i wanna know how i make the food to give "less hungry"

    plz just comment or put in description how ty

  • @mentin22 in mod_item change public static final line to this,

    public static final Item (putnameofclassfilehere) = new ItemFood(any id, amount you want to heal hunger, false).setitemname("anything")­;

  • Comment removed

  • @ricky01291 did u put the image in the right place?

  • hey bro i watched ur tut on the toolz but it no work 4 me idk how 2 use the mod pr sumthin like dat like idk ho 2 install it could u help me

  • Can you update the way to make food. since 1.8/1.9 food is 90% different. #idontexageratepercentages(sor­ta)

  • @NITWZ its the same

  • Guys for mac if you don't want to buy edit rocket download text wrangler from the mac app store I think I like it just as much as dashcode and edit rocket

  • i have a problem with adding a recipe, i made 2 different items but and im trying to do so that you can craft a item with the modItem, here's the recipe:

    "*#*", "#X#", "*#*", character.valueOf('#'), Item.ingotIron, Character.valueOf('X'), Item.ItemOm, (< thats the ugly error D:) Character.valueOf('*'), Item.ingotIron

    help me with this PLEASE! i know they say that you are not going to ask about people that can fix the problem but i NEED to... i've made everything i can, no result, only errors :(

  • @Bitrex14 Exact same problem I don't know either

  • @TheBlackstealth Hello! A lot of people get this problem, when they try to incorporate their own modded items into the recipe. The thing is, your "ItemOm" is not defined in the Item.java source code, it's in your own modded code. change Item.ItemOm to mod_ItemOm.ItemOm or whatever you defined (public static) it in. Hope this helps!

  • @DisguisedNinjas OH MY GOSHD!!!! THANK YOU THANK YOU THANK YOU. I can't thank you enough I have been searching and searching and you are the only one that has helped!!!!! THANK YOU - I'm subscribing. :)

  • Hello, I tried following this tutorial but now its giving me an error saying that the Bootstrap class path not set in conjunction with -1.6src. Do you know how I would fix this error?

  • How to download the modloader template?

  • WHY IS EVERY TUTORIAL ON THIS ALWAYS ON A MAC!!?!?!!

  • @TheGuildGamers Instead of using a backslash \ use a forward slash /

  • I like this but I have one question, does anyone know how I would use this Item in a crafting grid? would it Item.(youritem)

  • Is there a way to add the "Om nom nom" animation? lol

  • @TheGuildGamers put it in your minecraft.jar file too, it isn't going to work if you only put it in the MCP I believe. I had this problem before, when all I needed to do was put the texture in the .jar file.

  • :( but then i just realized that there is no eating animation and you fill up the health bar not the hunger bar :( is there a tutorial for the hunger not the health?

  • your tutorials are the best!

  • dude, I LOVE YOUR TUTORIALS!! :D i finally could make my mods but please go a little slower, and in any way, can you try zooming in or saying every single thing you type cause sometimes i think the think is a period or cama or a bracket or squigly bracket and stuff. but still good tutorials!! :D

  • @TheGuildGamers I have the same problem!!!

  • GRRRRRR IM SOOOO PISSED MY INTERNET IS BEING A PIECE OF CRAP ITZZ SOOOOOOOOOOOOOOOO SLOW GRRRR

  • I don't have the start.class or anything in my src except for net

  • what bout a furnase?

  • @unmi1231 furnace*

  • i actually was looking for a tutorial on how to make fuel (like coal, wood, sapplings,etc) because i want to make dirt as burning fuel! please help!

  • :8: error : invalid method decleration: return type required

    public mod_Item()

    I get this error message, Don't completely understand it, if someone can help, please that would be great

  • how do you get the side bar back on editrocket?

  • @ThePr2hacker It is because you have a error. XD

  • how do i make it so it fills the hunger bar instead?

  • @mclmatty possibly have a look at some of the other source files and look for health or something similar, could be in there, I don't really know though, sorry (just trying)

  • 1 error:

    warning: [options] bootstrap class path not set in conjunction with -source 1.6 src\minecraft\net\minecraft\sr­c\ItemLollie.java:25: error:reached end of file while parsing

    }

    ^

    anyone know how to fix this?

  • @ThoseYouthGamers You're missing a squiggly bracket "}" somewhere in your code.

  • Comment removed

  • Hey!

    When you do this can u use Text Edit for Mac? If not what text edit can you use (apart from Edit Rocket I can't buy it :S)

  • @Urbanrivals987 you can use Notepad C++, that is what I am using, also edit rocket as free trial

  • Doesn't work in 1.8.

  • nice tut dude

  • I am getting an error sayin

    ModLoader.AddRecipe(new ItemStack(itemHenry,2,), new Object[]{

    ^

    error:illegal start of expression

    Please help.

  • @TheMinecraftmanVG never mind. XD

  • @ThePr2hacker hmmm...i have windows 7 and it works fine.go back to his setting up mcp tutorial

  • Comment removed

  • if i want to make a my item in a recipe what would name would i use?

    ModLoader.AddRecipe(new ItemStack(copper, 1), new Object[]{ " * "," % " ,Character.valueOf('*'), Item.enderPearl, Character.valueOf('%'), Item.Dark Stick });

  • Ahem...I got an error, that looked somewhat like this:

    java.lang.Exception: No registry for this texture: /qui/items.png

    And then about twenty lines of jibberish. Can anyone tell me what this means, or how to fix?

  • @ChilledRaptor it should be "/gui/items.png'' not /qui/

  • I've got an error at itemCopper.iconIndex = ModLoader.addOverride("/gui/it­ems.png","/itemCopper.png"); even though I saved the texture in the right place

  • Please leave a download for an example of your mod here in the description - cause i get like 11 errors every time :(

  • Do I have to make a new file everytime I want to add an Item or do I use the same one over and over.

  • lolz i r beginner modder and i went from like 15 errors to one error by myself i r happy but i cant seem to figure out his last one it says mod_item.java:6: error:';' expected

    public static final Item SquirmaIngot = new ItemSquirmaIngot(400, "Squirmangot")); i dunno what the error is? can u hel[p me please

  • IMPORTANT QUESTION. Instead of downloading all this, could I just make a class file on eclipse and add to the .jar?

  • how do you get 2 items, like:

    ModLoader.AddRecipe(new ItemStack(Pickaxe, 1), new Object []{ "***", " l ", " l ", Character.valueOf('*'), Item.field_35416_bo, Character.valueOf('l'), Item.stick });

  • @zacharybaringer Change this number: (Pickaxe, 1) to a 2 or any number, that is how many you get out :D

  • @D3molitionProj3ct nvm, you don't understand D:

  • @zacharybaringer Is this recipe programmed in the same source code as the Pickaxe is defined in? If not, change Pickaxe to mod_Tools.Pickaxe, or whatever you named the source code you defined the Pickaxe in.

  • How do I make a recipe with my new item I made?

  • @LucasG98 It's in another of his videos.

  • @consumptionof wich one i could not find it

  • @LucasG98 /watch?v=vHzg7bhTRGE is How to add your own crafting and furnace recipes into Minecraft [1.8]

  • What i want to do is make an ore that is generated in the world, and when you break it, it gives you the actual ore, not the block (ex: redstone gives redstone dust), then i use that item to do something else, can anyone help me with this? is there any tutorial? because henry only shows the block being dropped when u destroy the block, and he doesnt show how to smelt it into an ingot.. help me pzl

  • Ehm.. this isn't 1.8 right! How do you do it in 1.8, with the new food/eating thing? And can you actually make it poison you like spiders do? Please respond ;)

  • Comment removed

  • i get theese 2 error: src/minecraft/net/minecraft/sr­c/mod_chain.java:9: (identifier) expected Itemchain.iconIndex = ModLoader.addOverride("/gui/It­em.png". "/Itemchain.png");

    2nd error:

    src/minecraft/net/minecraft/sr­c/mod_chain.java:9: ';' expected Itemchain.iconIndex = ModLoader.addOverride("/gui/It­em.png". "/Itemchain.png"); plz help!? | ow lol i fixed theese errors but when i did i got 4 new! omfg!?

  • i get theese 2 error: src/minecraft/net/minecraft/sr­c/mod_chain.java:9: (identifier) expected Itemchain.iconIndex = ModLoader.addOverride("/gui/It­em.png". "/Itemchain.png");

    2nd error:

    src/minecraft/net/minecraft/sr­c/mod_chain.java:9: ';' expected Itemchain.iconIndex = ModLoader.addOverride("/gui/It­em.png". "/Itemchain.png"); plz help!? | ow lol i fixed theese errors but when i did i got 4 new! omfg!?

  • Comment removed

  • How do I set the item to act like a bucket?

  • Yeah, when adding the recipe, the item doesn't seem to be registered. Can you find a solution to this problem?

  • @GameMaster337 Found the solution. Instead of having "Item.[ITEM]" I only set it to "[ITEM]". [ITEM] = The item name. I don't want to tell you what I am making :)