An up to date MODLOADER tutorial?! Thank goodness! I will check it out later.
If you don't like what you see in my tuts, check out x2robbie2x, he has a ton of tutorials, all easy to understand, and is great at describing his stuff!
He also has stuff I won't be covering.
I'm not trying to compete with you at all xD
Just maybe extending or covering things maybe you don't get around to or make video tutorials for forge since the only ones I've seen are text-based (though still good, some people, like me, just learn better through video)
I did! And still do!:biggrin.gif: He's how I learned my first bit of modding, then I just kinda taught myself/forum-spammed questions in Modding Discussion xD
Lemme see the error report now? OH! Wait.. uhh Edit? haha
Okay, in your shapeless recipe, take out your Character.setValueOf() stuff and the "x", "x", kinda stuff, ONLY in the brackets have {ItemName, ItemName, ItemName} like that. There's no need for declaring character values since the item's placement in the crafting recipe doesn't matter. Check out my very first Item tutorial video to see an example!
Yeah I know I'm just teasing :tongue.gif: Thanks a lot for helping people out with errors :biggrin.gif:
Yeah I know I'm just teasing :tongue.gif: Thanks a lot for helping people out with errors :biggrin.gif:
It's no problem, I make sure to point people in your direction for things I'm not going to cover, since you have the best tutorials I've seen on youtube/in general xD
i get this error /: im trying to make a pickaxe axe shoval sword and hoe
27 achievements
174 recipes
ModLoader 1.0.0 Initializing...
Mod Initialized: mod_Tools TestMod v0.01
Overriding /gui/items.png with /DiamOsid/Pick.png @ 38. 87 left.
Overriding /gui/items.png with /DiamOsid/Spade.png @ 102. 86 left.
Overriding /gui/items.png with /DiamOsid/Axe.png @ 118. 85 left.
Overriding /gui/items.png with /DiamOsid/Hoe.png @ 119. 84 left.
Overriding /gui/items.png with /DiamOsid/Sword.png @ 120. 83 left.
Overriding /gui/items.png with /DiamOsid/DiamOsid.png @ 134. 82 left.
Exception in thread "Minecraft main thread" java.lang.ExceptionInInitializerError
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at net.minecraft.src.ModLoader.init(ModLoader.java:770)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
... 3 more
Caused by: java.lang.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:303)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:372)
at net.minecraft.src.mod_Tools.load(mod_Tools.java:54)
at net.minecraft.src.ModLoader.init(ModLoader.java:739)
... 6 more
heres my code
//modlader templat
package net.minecraft.src;
import java.util.Random;
public class mod_Tools extends BaseMod
{
public static Item DiamOsid = new ItemDiamondobsidion(158).setItemName("DiamOsid");
public static Item PickaxeDO = new ItemPickaxe(153,EnumToolMaterial.DIAMOSID).setItemName("ThePick");
public static Item SpadeDO = new ItemSpade(154,EnumToolMaterial.DIAMOSID).setItemName("TheSpade");
public static Item AxeDO = new ItemAxe(155,EnumToolMaterial.DIAMOSID).setItemName("TheAxe");
public static Item HoeDO = new ItemHoe(156,EnumToolMaterial.DIAMOSID).setItemName("TheHoe");
public static Item SwordDO = new ItemSword(157,EnumToolMaterial.DIAMOSID).setItemName("TheSword");
@Override
public String getVersion()
{
return "TestMod v0.01";
}
public mod_Tools()
{
}
@Override
public void load() {
ModLoader.AddName(PickaxeDO, "TestPick");
ModLoader.AddName(SpadeDO, "TestShovle");
ModLoader.AddName(AxeDO, "TestAxe");
ModLoader.AddName(HoeDO, "TestHoe");
ModLoader.AddName(SwordDO, "TestSword");
ModLoader.AddName(DiamOsid, "TestItem");
PickaxeDO.iconIndex = ModLoader.addOverride("/gui/items.png", "/DiamOsid/Pick.png" );
SpadeDO.iconIndex = ModLoader.addOverride("/gui/items.png", "/DiamOsid/Spade.png" );
AxeDO.iconIndex = ModLoader.addOverride("/gui/items.png", "/DiamOsid/Axe.png" );
HoeDO.iconIndex = ModLoader.addOverride("/gui/items.png", "/DiamOsid/Hoe.png" );
SwordDO.iconIndex = ModLoader.addOverride("/gui/items.png", "/DiamOsid/Sword.png" );
DiamOsid.iconIndex = ModLoader.addOverride("/gui/items.png", "/DiamOsid/DiamOsid.png");
ModLoader.AddRecipe(new ItemStack(PickaxeDO, 1), new Object[] {"###", " $ ", " $ ", Character.valueOf('#'), Item.DiamOsid, Character.valueOf('$'), Item.stick} );
ModLoader.AddRecipe(new ItemStack(SpadeDO, 1), new Object[] {" # ", " $ ", " $ ", Character.valueOf('#'), Item.DiamOsid, Character.valueOf('$'), Item.stick});
ModLoader.AddRecipe(new ItemStack(AxeDO, 1), new Object[] {"## ", "#$ ", " $ ", Character.valueOf('#'), Item.DiamOsid, Character.valueOf('$'), Item.stick});
ModLoader.AddRecipe(new ItemStack(HoeDO, 1), new Object[] {"##", " $ ", " $ ", Character.valueOf('#'), Item.DiamOsid, Character.valueOf('$'), Item.stick});
ModLoader.AddRecipe(new ItemStack(SwordDO, 1), new Object[] {" # ", " # ", " $ ", Character.valueOf('#'), Item.DiamOsid, Character.valueOf('$'), Item.stick});
ModLoader.AddShapelessRecipe(new ItemStack(DiamOsid, 1), new Object[] {"#", "$", Character.valueOf('#'), Item.diamond, Character.valueOf('$'), Block.obsidian});
}
}
any help would be awesome
and also can you do armor tuts
Its your shapeless recipe -- not configured right for modloader: heres a fix:
ModLoader.AddShapelessRecipe(new ItemStack(DiamOsid, 1), new Object[] {Item.diamond, Block.obsidian});
Rollback Post to RevisionRollBack
Out of all the things I have lost, I miss my mind the most...
errrmmm... valcain... for your tutorial for the ItemTut pickaxe, i have a problem because there is no material.diamond, gold, lapis or what not so how would i make it so that its unable to mine diamond, gol or lapis.... could you please respond to me quickly? thanks.
BTW nice tutoirals keep them up, i also have a requst if you want to do it. Maybe a tutorial on a throwable item and then making that throwable item an explosive so that when it hits a block it will explode? thanks again.
If you don't like what you see in my tuts, check out x2robbie2x, he has a ton of tutorials, all easy to understand, and is great at describing his stuff!
He also has stuff I won't be covering.
Yeah I know I'm just teasing :tongue.gif: Thanks a lot for helping people out with errors :biggrin.gif:
It's no problem, I make sure to point people in your direction for things I'm not going to cover, since you have the best tutorials I've seen on youtube/in general xD
Are you using a Java IDE? It should help catch errors =\Also, Forge Unlimited Sprite index is out!
I posted it in the forums, and gave you credit.
Thread
Thank you very much for the help.
Its your shapeless recipe -- not configured right for modloader: heres a fix:
BTW nice tutoirals keep them up, i also have a requst if you want to do it. Maybe a tutorial on a throwable item and then making that throwable item an explosive so that when it hits a block it will explode? thanks again.