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?!?!?
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?!?!?
18
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)
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)
lol we're twins, well I am 19 and you're not but with coding we kinda r, OH I AM SO CONFUSING!
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
WELL i FIXED the big part now I need to fix the small one
only bump every 24 hours please, it part of the rules
just be patient someone (a modder) will come here and look at this eventually
ermaHGODZ SOMWON!
try to remake it
ANYONE WANT TO HELP OUT SOMEONE!
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
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
is anyone gonna help?!
well stackoverflow didn't help!
It's only been 11 min since you started, patience is a virtue.
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.
I don't think most people on PMC are too familiar with Bukkit API and could really help you out.
SOMEONE HWELP!!!!!!!!!!!!!!!!!!!!!
NOW
NOW
ANYONE!
