1

Help for my mod!

GetVape 8/3/13 1:28 pm
294
8/3/2013 3:10 pm
I was coding my shovel, and I found a problem, but everytime I fix it it doesn't work.
the code is public void registerIcons(IconRegister iconRegister) {
itemIcon= IconRegister.registerIcon("RealismMod:ShovelOfLife");
}

}

Can anyone help me fix it, I am using eclipse and the way to fix it is add a static thing, but everytime I do, it says remove static then it doesn't work then it says add it(PARADOX) so can anyone help me?!?!?
Posted by
GetVape
Level 11 : Journeyman Modder
12

  Have something to say?

JoinSign in

18

GetVape
08/03/2013 3:10 pm
Level 11 : Journeyman Modder
well I fixed it AGAIN now I have this bug! LanguageRegistry.addName("AxeOfLife, AxeOfLife");
LanguageRegistry.addName("HoeOfLife, HoeOfLife");

the hoe of life, and axe off life addName isn't working, and when I fix it and I play it, it doesn't work, and I get a bug about the 2 nulls there(when I put the nulls it SEEMS to be good, but it isn't)
1
GetVape
08/03/2013 2:49 pm
Level 11 : Journeyman Modder
lol we're twins, well I am 19 and you're not but with coding we kinda r, OH I AM SO CONFUSING!
1
IhasTurtlez
08/03/2013 2:34 pm
Level 2 : Apprentice Miner
you have to realize the majority of the people on pmc are 10 yr olds. And I have had the same problem with eclipse before. and I am also in need of answers XD
1
GetVape
08/03/2013 2:31 pm
Level 11 : Journeyman Modder
WELL i FIXED the big part now I need to fix the small one
1
IG_Lightning
08/03/2013 2:24 pm
Level 32 : Artisan Taco
only bump every 24 hours please, it part of the rules
1
AetherMaster
08/03/2013 2:24 pm
Level 44 : Master Demolitionist
just be patient someone (a modder) will come here and look at this eventually
1
GetVape
08/03/2013 2:18 pm
Level 11 : Journeyman Modder
ermaHGODZ SOMWON!
1
Gunner589
08/03/2013 2:25 pm
Level 16 : Journeyman Miner
try to remake it
1
GetVape
08/03/2013 2:09 pm
Level 11 : Journeyman Modder
ANYONE WANT TO HELP OUT SOMEONE!
1
GetVape
08/03/2013 1:54 pm
Level 11 : Journeyman Modder
ugh now I got a big problem can anyone help with this
package Eclipse7.RealismMod.common;


import net.minecraft.Item.EnumToolMaterial;
import net.minecraftforge.common.EnumHelper;
import net.minecraft.item.Item;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;



@Mod(modid = "RealismMod", name = "RealismMod", version = "0.1 Alpha")
public class RealismMod {


//EnumToolMaterial
public static EnumToolMaterial toolLife = EnumHelper.addToolMaterial("LIFE", 3, 2000, 15.0F, 2.0F, 30);


//Registrations
public static Item PickaxeOfLife = new ItemPickaxeOfLife(2000, toolLife).setUnlocalizedName("PickaxeOfLife");
public static Item SwordOfLife = new ItemSwordOfLife(2001, toolLife).setUnlocalizedNsmr("SwordOfLife");
public static Item ShovelOfLife = new ItemShovelOfLife(2002, toolLife).setUnlocalizedName(ShovelOfLife);
public static Item AxeOfLife = new ItemAxeOfLife(2003, toolLife).setUnlocalizedName(ShovelOfLife);
public static Item HoeOfLife = new ItemHoeOfLife(2004, toolLife).setUnlocalizedName(HoeOfLife):





public RealismMod() {

LanguageRegistry.addName(PickaxeOfLife, "PickaxeOf Life");
LanguageRegistry.addName(SwordOfLife, "SwordOf Life");
LanguageRegistry.addName(ShovelOfLife, "SwordOf Life");
LanguageRegistry.addName("AxeOfLife, AxeOf Life", null);
LanguageRegistry.addName("HoeOfLife, HoeOf Life", null);

GameRegistry.addRecipe(new ItemStack(PickaxeOfLife, 1), new Object [] {
"***", " X ", " X ", 'X', Item.stick "*", Item.appleGold
});

GameRegistry.addRecipe(new ItemStack(SwordOfLife, 1), new Object [] {
" * ", " * ", " X ", 'X', Item.Stick "*", Item.appleGold
});

GameRegistry.addRecipe(new ItemStack(ShovelOfLife, 1), new Object [] {
" * ", " X ", " X ", 'X', Item.stick '*', Item.appleGold
});

GameRegistry.addRecipe(new ItemStack(AxeOfLife, 1), new Object [] {
"** ", "*X ", 'X', Item.stick, '*', Item.appleGold
});

GameRegistry.addRecipe(new ItemStack(HoeOfLife, 1), new Object [] {
"** ", " X ", " X", 'X', Item.stick, '*', Item.appleGold
});

















}








AND THE OTHER THING WITH THE ICON REGISTER THING i didn't fix that either
1
GetVape
08/03/2013 1:51 pm
Level 11 : Journeyman Modder
is anyone gonna help?!
1
GetVape
08/03/2013 1:44 pm
Level 11 : Journeyman Modder
well stackoverflow didn't help!
1
DragoPug
08/03/2013 1:41 pm
Level 9 : Apprentice Miner
It's only been 11 min since you started, patience is a virtue.
1
Swimmer1929
08/03/2013 1:41 pm
Level 40 : Master Taco
I would ask that question on Bukkit forums or here http://stackoverflow.com/
I don't think most people on PMC are too familiar with Bukkit API and could really help you out.
1
GetVape
08/03/2013 1:39 pm
Level 11 : Journeyman Modder
1
GetVape
08/03/2013 1:39 pm
Level 11 : Journeyman Modder
1
GetVape
08/03/2013 1:38 pm
Level 11 : Journeyman Modder
SOMEONE HWELP!!!!!!!!!!!!!!!!!!!!!


NOW
1
GetVape
08/03/2013 1:32 pm
Level 11 : Journeyman Modder
ANYONE!
1

Welcome