The only thing that I can think of is in this part:
public static final Item Pick;
public static final Item Spade;
public static final Item Axe;
public static final Item Hoe;
public static final Item Sword;
Take out the "final" to keep it as:
public static Item Pick;
public static Item Spade;
public static Item Axe;
public static Item Hoe;
public static Item Sword;
now i get this error:
== MCP v4.4 ==
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/pat
ches/*.java failed.
Return code : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_GlowstoneTools.java:17: error: cannot find s
ymbol
Pick.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstonePick.png"
);
^
symbol: variable setIconIndex
location: variable Pick of type Item
src\minecraft\net\minecraft\src\mod_GlowstoneTools.java:18: error: cannot find s
ymbol
Spade.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneSpade.pn
g");
^
symbol: variable setIconIndex
location: variable Spade of type Item
src\minecraft\net\minecraft\src\mod_GlowstoneTools.java:19: error: cannot find s
ymbol
Axe.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneAxe.png");
^
symbol: variable setIconIndex
location: variable Axe of type Item
src\minecraft\net\minecraft\src\mod_GlowstoneTools.java:20: error: cannot find s
ymbol
Hoe.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneHoe.png");
^
symbol: variable setIconIndex
location: variable Hoe of type Item
src\minecraft\net\minecraft\src\mod_GlowstoneTools.java:21: error: cannot find s
ymbol
Sword.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneSword.pn
g");
^
symbol: variable setIconIndex
location: variable Sword of type Item
5 errors
1 warning
==================
> Done in 18.65 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
Rollback Post to RevisionRollBack
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy this into your signature and hope it happens.
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy this into your signature and hope it happens.
I don't mean to be an *** but it would be cool, if you walked around, there would be dynamic lighting! Just an idea, Good luck with this mod though.
i plan on it. so how is it that i have gotten so many replies but nothing seems to work? anyone? i feel like i should post code again. so my error is above, and here is my initial code:
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// BaseMod, ModLoader, Item, ItemStack,
// Block, ItemPickaxe, EnumToolMaterial, ItemSpade,
// ItemAxe, ItemHoe, ItemSword
public class mod_GlowstoneTools extends BaseMod
{
public mod_GlowstoneTools()
{
Pick.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstonePick.png");
Spade.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneSpade.png");
Axe.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneAxe.png");
Hoe.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneHoe.png");
Sword.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneSword.png");
ModLoader.AddName(Pick, "Glowstone Pickaxe");
ModLoader.AddName(Spade, "Glowstone Shovel");
ModLoader.AddName(Axe, "Glowstone Axe");
ModLoader.AddName(Hoe, "Glowstone Hoe");
ModLoader.AddName(Sword, "Glowstone Sword");
ModLoader.AddRecipe(new ItemStack(Pick, 1), new Object[] {
"***", " # ", " # ", Character.valueOf('*'), Block.glowStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(Axe, 1), new Object[] {
"** ", "*# ", " # ", Character.valueOf('*'), Block.glowStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(Spade, 1), new Object[] {
" # ", " # ", " * ", Character.valueOf('*'), Block.glowStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(Hoe, 1), new Object[] {
"** ", " # ", " # ", Character.valueOf('*'), Block.glowStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(Sword, 1), new Object[] {
" * ", " * ", " # ", Character.valueOf('*'), Block.glowStone, Character.valueOf('#'), Item.stick
});
}
public String Version()
{
return "3.14159265";
}
public static final ToolMaterial glowstoneTools;
public static final Item Pick;
public static final Item Spade;
public static final Item Axe;
public static final Item Hoe;
public static final Item Sword;
static
{
glowstoneTools = (new ToolMaterial(3, 750, 7F, 2));
Axe = (new ItemAxe(158, glowstoneTools)).setItemName("magicAxe");
Hoe = (new ItemHoe(159, glowstoneTools)).setItemName("magicHoe");
Pick = (new ItemPickaxe(160, glowstoneTools)).setItemName("magicPickaxe");
Spade = (new ItemSpade(161, glowstoneTools)).setItemName("magicShovel");
Sword = (new ItemSword(162, glowstoneTools)).setItemName("magicSword");
}
}
Rollback Post to RevisionRollBack
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy this into your signature and hope it happens.
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy this into your signature and hope it happens.
uhm when you defined your enumtoolmaterial you put glowstone try making it GLOWSTONE sticking with the minecraft syntax always helps btw and all the minecraft ones are in all caps.
Rollback Post to RevisionRollBack
extraOREdinary (WIP) - new ores, tools, blocks, and halfblocks.
public static final ToolMaterial glowstoneTools;
public static final Item Pick;
public static final Item Spade;
public static final Item Axe;
public static final Item Hoe;
public static final Item Sword;
static
{
glowstoneTools = (new ToolMaterial(3, 750, 7F, 2));
Axe = (new ItemAxe(158, glowstoneTools)).setItemName("magicAxe");
Hoe = (new ItemHoe(159, glowstoneTools)).setItemName("magicHoe");
Pick = (new ItemPickaxe(160, glowstoneTools)).setItemName("magicPickaxe");
Spade = (new ItemSpade(161, glowstoneTools)).setItemName("magicShovel");
Sword = (new ItemSword(162, glowstoneTools)).setItemName("magicSword");
}
}
you see because you defined them as magicAxe like
Axe = (new ItemAxe(158, glowstoneTools)).setItemName("magicAxe");
it is saying that the item Axe is now being referred to as magicAxe.
Rollback Post to RevisionRollBack
extraOREdinary (WIP) - new ores, tools, blocks, and halfblocks.
Take out the "final" to keep it as:
== MCP v4.4 ==
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/pat
ches/*.java failed.
Return code : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_GlowstoneTools.java:17: error: cannot find s
ymbol
Pick.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstonePick.png"
);
^
symbol: variable setIconIndex
location: variable Pick of type Item
src\minecraft\net\minecraft\src\mod_GlowstoneTools.java:18: error: cannot find s
ymbol
Spade.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneSpade.pn
g");
^
symbol: variable setIconIndex
location: variable Spade of type Item
src\minecraft\net\minecraft\src\mod_GlowstoneTools.java:19: error: cannot find s
ymbol
Axe.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneAxe.png");
^
symbol: variable setIconIndex
location: variable Axe of type Item
src\minecraft\net\minecraft\src\mod_GlowstoneTools.java:20: error: cannot find s
ymbol
Hoe.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneHoe.png");
^
symbol: variable setIconIndex
location: variable Hoe of type Item
src\minecraft\net\minecraft\src\mod_GlowstoneTools.java:21: error: cannot find s
ymbol
Sword.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneSword.pn
g");
^
symbol: variable setIconIndex
location: variable Sword of type Item
5 errors
1 warning
==================
> Done in 18.65 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy this into your signature and hope it happens.
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy this into your signature and hope it happens.
i plan on it. so how is it that i have gotten so many replies but nothing seems to work? anyone? i feel like i should post code again. so my error is above, and here is my initial code:
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy this into your signature and hope it happens.
I think what you forgot was the "import java.util.Random".
If Facebook, Myspace, and Twitter were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy this into your signature and hope it happens.
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// BaseMod, ModLoader, Item, ItemStack,
// Block, ItemPickaxe, EnumToolMaterial, ItemSpade,
// ItemAxe, ItemHoe, ItemSword
public class mod_GlowstoneTools extends BaseMod
{
public mod_GlowstoneTools()
{
magicPickaxe.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstonePick.png");
magicSpade.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneSpade.png");
magicAxe.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneAxe.png");
magicHoe.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneHoe.png");
magicSword.setIconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneSword.png");
ModLoader.AddName(Pick, "Glowstone Pickaxe");
ModLoader.AddName(Spade, "Glowstone Shovel");
ModLoader.AddName(Axe, "Glowstone Axe");
ModLoader.AddName(Hoe, "Glowstone Hoe");
ModLoader.AddName(Sword, "Glowstone Sword");
ModLoader.AddRecipe(new ItemStack(magicPick, 1), new Object[] {
"***", " # ", " # ", Character.valueOf('*'), Block.glowStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(magicAxe, 1), new Object[] {
"** ", "*# ", " # ", Character.valueOf('*'), Block.glowStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(magicSpade, 1), new Object[] {
" # ", " # ", " * ", Character.valueOf('*'), Block.glowStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(magicHoe, 1), new Object[] {
"** ", " # ", " # ", Character.valueOf('*'), Block.glowStone, Character.valueOf('#'), Item.stick
});
ModLoader.AddRecipe(new ItemStack(magicSword, 1), new Object[] {
" * ", " * ", " # ", Character.valueOf('*'), Block.glowStone, Character.valueOf('#'), Item.stick
});
}
public String Version()
{
return "3.14159265";
}
public static final ToolMaterial glowstoneTools;
public static final Item Pick;
public static final Item Spade;
public static final Item Axe;
public static final Item Hoe;
public static final Item Sword;
static
{
glowstoneTools = (new ToolMaterial(3, 750, 7F, 2));
Axe = (new ItemAxe(158, glowstoneTools)).setItemName("magicAxe");
Hoe = (new ItemHoe(159, glowstoneTools)).setItemName("magicHoe");
Pick = (new ItemPickaxe(160, glowstoneTools)).setItemName("magicPickaxe");
Spade = (new ItemSpade(161, glowstoneTools)).setItemName("magicShovel");
Sword = (new ItemSword(162, glowstoneTools)).setItemName("magicSword");
}
}
you see because you defined them as magicAxe like
Axe = (new ItemAxe(158, glowstoneTools)).setItemName("magicAxe");
it is saying that the item Axe is now being referred to as magicAxe.
Are you still getting errors, and if different ones, post the code and errors, and are you using anything else but Modloader for modding?
just write it as