“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
still getting these after fixing that. I get the illegal start of type error on almost every mod. always at the same place. is there a different way to do it?
== 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_Glasses.java:12: error: ')' expected
ModLoader.AddName(itemGlasses "ItemGlasses");
^
src\minecraft\net\minecraft\src\mod_Glasses.java:12: error: illegal start of exp
ression
ModLoader.AddName(itemGlasses "ItemGlasses");
^
src\minecraft\net\minecraft\src\mod_Glasses.java:14: error: '}' expected
"* *", "* *", "***" Character.valueOf('*') = block.glass;
^
src\minecraft\net\minecraft\src\mod_Glasses.java:15: error: illegal start of typ
e
});
^
src\minecraft\net\minecraft\src\mod_Glasses.java:18: error: class, interface, or
enum expected
public String Version()
^
src\minecraft\net\minecraft\src\mod_Glasses.java:21: error: class, interface, or
enum expected
}
^
6 errors
1 warning
==================
> Done in 2.47 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
== 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_Glasses.java:14: error: '}' expected
"* *", "* *", "***", Character.valueOf('*'), block.glass;
^
src\minecraft\net\minecraft\src\mod_Glasses.java:14: error: ';' expected
"* *", "* *", "***", Character.valueOf('*'), block.glass;
^
src\minecraft\net\minecraft\src\mod_Glasses.java:15: error: illegal start of exp
ression
});
^
3 errors
1 warning
==================
> Done in 2.47 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
Know anything about the illegal start of expression error i keep getting? also, do you think that Henry The Coder does good modding tutorials? because whenever i try and do it, even if i have my code identical to his, i get errors
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
== 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_Glasses.java:11: error: cannot find symbol
itemGlasses.iconIndex = ModLoader.addOverride("/gui/items.png", "/glass.png");
^
symbol: variable itemGlasses
location: class mod_Glasses
src\minecraft\net\minecraft\src\mod_Glasses.java:12: error: cannot find symbol
ModLoader.AddName(itemGlasses, "ItemGlasses");
^
symbol: variable itemGlasses
location: class mod_Glasses
src\minecraft\net\minecraft\src\mod_Glasses.java:13: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(itemGlasses , 12), new Object []{
^
symbol: variable itemGlasses
location: class mod_Glasses
3 errors
1 warning
==================
> Done in 10.48 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
I'm guessing this is another case issue but i cant find any errors
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
public static final Item ItemGlasses = new ItemGlasses(801).setItemName("ig");
itemGlasses.iconIndex = ModLoader.addOverride("/gui/items.png", "/glass.png");
ModLoader.AddName(itemGlasses "ItemGlasses");
One of these is not like the others. :biggrin.gif:
Hint: Yeah. Case error.
Thankyou!!!!! for all your help, a bit of trial and error fixed it (public static final!)
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_GlowTools.java:6: error: ';' expected
public static final Item Pick = new ItemPick(2001, EnumToolMaterial.SPARKLE).set
ItemName("fgha")
^
src\minecraft\net\minecraft\src\mod_GlowTools.java:7: error: ';' expected
public static final Item Axe = new ItemAxe(2002, EnumToolMaterial.SPARKLE).setIt
emName("gfha")
^
src\minecraft\net\minecraft\src\mod_GlowTools.java:8: error: ';' expected
public static final Item Hoe = new ItemHoe(2003, EnumToolMaterial.SPARKLE).setIt
emName("fhga")
^
src\minecraft\net\minecraft\src\mod_GlowTools.java:9: error: ';' expected
public static final Item SPADE = new ItemSPADE(2004, EnumToolMaterial.SPARKLE).s
etItemName("fgah")
src\minecraft\net\minecraft\src\mod_GlowTools.java:10: error: ';' expected
public static final Item Sword = new ItemSword(2005, EnumToolMaterial.SPARKLE).s
etItemName("dgha")
^
5 errors
1 warning
==================
> Done in 1.61 seconds
> Recompiling server...
> Done in 6.99 seconds
Press any key to continue . . .
public class mod_GlowTools extends BaseMod
{
public static final Item GlowPick = new ItemGlowPick(2001, EnumToolMaterial.SPARKLE).setItemName("fgha")
public static final Item GlowAxe = new ItemGlowAxe(2002, EnumToolMaterial.SPARKLE).setItemName("gfha")
public static final Item GlowHoe = new ItemGlowHoe(2003, EnumToolMaterial.SPARKLE).setItemName("fhga")
public static final Item GlowSPADE = new ItemGlowSPADE(2004, EnumToolMaterial.SPARKLE).setItemName("fgah")
public static final Item GlowSword = new ItemGlowSword(2005, EnumToolMaterial.SPARKLE).setItemName("dgha")
public static final Item GlowPick = new ItemGlowPick(2001, EnumToolMaterial.SPARKLE).setItemName("fgha")
public static final Item GlowAxe = new ItemGlowAxe(2002, EnumToolMaterial.SPARKLE).setItemName("gfha")
public static final Item GlowHoe = new ItemGlowHoe(2003, EnumToolMaterial.SPARKLE).setItemName("fhga")
public static final Item GlowSPADE = new ItemGlowSPADE(2004, EnumToolMaterial.SPARKLE).setItemName("fgah")
public static final Item GlowSword = new ItemGlowSword(2005, EnumToolMaterial.SPARKLE).setItemName("dgha")
You're missing semicolons, like the compiler says. Each of these lines should end with one.
For example:
public static final Item GlowPick = new ItemGlowPick(2001, EnumToolMaterial.SPARKLE).setItemName("fgha");
wow i feel stupied. lol thanks for putting that out. Thanks for the help it works now. Only question i got is how to do add special abilities or attributes to a item? I been searching and haven't really seen much on how this is obtained.
Here is my mod_Glasses.java file
Here is my ItemGlasses.java file
together they are powerful beyond imagination."
together they are powerful beyond imagination."
Know anything about the illegal start of expression error i keep getting? also, do you think that Henry The Coder does good modding tutorials? because whenever i try and do it, even if i have my code identical to his, i get errors
together they are powerful beyond imagination."
Also if you want the recipe to give you your ItemGlasses item, you have to change itemHenry to ItemGlasses.
I'm guessing this is another case issue but i cant find any errors
together they are powerful beyond imagination."
Thankyou!!!!! for all your help, a bit of trial and error fixed it (public static final!)
together they are powerful beyond imagination."
== 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_GlowTools.java:6: error: ';' expected
public static final Item Pick = new ItemPick(2001, EnumToolMaterial.SPARKLE).set
ItemName("fgha")
^
src\minecraft\net\minecraft\src\mod_GlowTools.java:7: error: ';' expected
public static final Item Axe = new ItemAxe(2002, EnumToolMaterial.SPARKLE).setIt
emName("gfha")
^
src\minecraft\net\minecraft\src\mod_GlowTools.java:8: error: ';' expected
public static final Item Hoe = new ItemHoe(2003, EnumToolMaterial.SPARKLE).setIt
emName("fhga")
^
src\minecraft\net\minecraft\src\mod_GlowTools.java:9: error: ';' expected
public static final Item SPADE = new ItemSPADE(2004, EnumToolMaterial.SPARKLE).s
etItemName("fgah")
src\minecraft\net\minecraft\src\mod_GlowTools.java:10: error: ';' expected
public static final Item Sword = new ItemSword(2005, EnumToolMaterial.SPARKLE).s
etItemName("dgha")
^
5 errors
1 warning
==================
> Done in 1.61 seconds
> Recompiling server...
> Done in 6.99 seconds
Press any key to continue . . .
This is my mod source code:
package net.minecraft.src;
import java.util.Random;
public class mod_GlowTools extends BaseMod
{
public static final Item GlowPick = new ItemGlowPick(2001, EnumToolMaterial.SPARKLE).setItemName("fgha")
public static final Item GlowAxe = new ItemGlowAxe(2002, EnumToolMaterial.SPARKLE).setItemName("gfha")
public static final Item GlowHoe = new ItemGlowHoe(2003, EnumToolMaterial.SPARKLE).setItemName("fhga")
public static final Item GlowSPADE = new ItemGlowSPADE(2004, EnumToolMaterial.SPARKLE).setItemName("fgah")
public static final Item GlowSword = new ItemGlowSword(2005, EnumToolMaterial.SPARKLE).setItemName("dgha")
public mod_GlowTools()
{
GlowPick.iconIndex = ModLoader.addOverride("/gui/items.png", "/glowpick.png");
GlowAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/glowAxe.png");
GlowHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/glowHoe.png");
GlowShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/glowSpade.png");
GlowSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/glowSword.png");
ModLoader.AddName(GlowPick, "GlowPick");
ModLoader.AddName(GlowAxe, "GlowAxe");
ModLoader.AddName(GlowHoe, "GlowHoe");
ModLoader.AddName(GlowShovel, "GlowShovel");
ModLoader.AddName(GlowSword, "GlowSword");
ModLoader.AddRecipe(new ItemStack(GlowPick, 1), new Object[] {
"***", " % ", " % ", Character.valueOf('*'), Block.glowStone, Character.valueOf('%'), Item.Stick
});
ModLoader.AddRecipe(new ItemStack(GlowAxe, 1), new Object[] {
"** ", "*% ", " % ", Character.valueOf('*'), Block.glowStone, Character.valueOf('%'), Item.Stick
});
ModLoader.AddRecipe(new ItemStack(GlowHoe, 1), new Object[] {
"** ", " % ", " % ", Character.valueOf('*'), Block.glowStone, Character.valueOf('%'), Item.Stick
});
ModLoader.AddRecipe(new ItemStack(GlowShovel, 1), new Object[] {
" * ", " % ", " % ", Character.valueOf('*'), Block.glowStone, Character.valueOf('%'), Item.Stick
});
ModLoader.AddRecipe(new ItemStack(GlowSword, 1), new Object[] {
" *", " * ", " % ", Character.valueOf('*'), Block.glowStone, Character.valueOf('%'), Item.Stick
});
}
public String Version()
{
return "3.14159265";
}
wow i feel stupied. lol thanks for putting that out. Thanks for the help it works now. Only question i got is how to do add special abilities or attributes to a item? I been searching and haven't really seen much on how this is obtained.