Hi, i am working on glowstone tools. i already have my first release, and am now working on adding ScotTools API. i have solved every single issue but one. so here is my 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_GlowsotneTools.java:16: error: '{' expected
public class mod_GlowstoneTools.java extends BaseMod
^
1 error
1 warning
==================
> Done in 2.11 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
i have tried putting an opening bracket in front of the public
Here is my source 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.java extends BaseMod
{
public mod_GlowstoneTools()
{
Pick.iconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstonePick.png");
Spade.iconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneSpade.png");
Axe.iconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneAxe.png");
Hoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneHoe.png");
Sword.iconIndex = 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 Item Pick;
public static final Item Spade;
public static final Item Axe;
public static final Item Hoe;
public static final Item Sword;
static
{
glowstone = (new ToolMaterial(3, 750, 7F, 2));
Axe = (new ItemAxe(AxeID, glowstone)).setItemName("magicAxe");
Hoe = (new ItemHoe(HoeID, glowstone)).setItemName("magicHoe");
Pick = (new ItemPickaxe(PickaxeID, glowstone)).setItemName("magicPickaxe");
Spade = (new ItemSpade(ShovelID, glowstone)).setItemName("magicShovel");
Sword = (new ItemSword(mSwordID, glowstone)).setItemName("magicSword");
}
}
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.
okay, that didn't work, but herp derp, i named the file mod_GlowesotneTools.java! i will see if changing that fixes
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.
Ok, if that still doesn't work try reinstalling MCP and ModLoader. In your error the stuff after recompiling client.... and before == Errors Found == looks bad
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.
as far as i can tell, it is not recognizing the "symbols" as in letters.
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.
What is a bootstrap class? sorry i sound like a noob
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.
Although, I see the new error message you posted that I totally missed. It seems like it is not recognizing where you define Sword, Hoe, Pick, Axe, Spade, and glowstone.
By the way,
Sword = (new ItemSword(mSwordID, glowstone)).setItemName("magicSword");
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.
yes to bin, and i dont think you need resources, as i dont add sounds. plus it worked without the, before
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.
package net.minecraft.src;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.Properties;
// 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()
{
readPropsFromFile();
AxeID = getIntFromProps("AxeID", 2401);
HoeID = getIntFromProps("HoeID", 2402);
PickaxeID = getIntFromProps("PickaxeID", 2403);
ShovelID = getIntFromProps("ShovelID", 2404);
mSwordID = getIntFromProps("SwordID", 2405);
writePropsToFile();
Pick.iconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstonePick.png");
Spade.iconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneSpade.png");
Axe.iconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneAxe.png");
Hoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/GlowstoneHoe.png");
Sword.iconIndex = 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
});
}
private void writeIntToProps(String Variable, int value)
{
props.setProperty(Variable, Integer.toString(value));
}
private int getIntFromProps(String Variable, int ELSE)
{
if(props.containsKey(Variable))
{
return Integer.parseInt(props.getProperty(Variable));
}else
{
return ELSE;
}
}
private void writePropsToFile()
{
FileOutputStream out = new FileOutputStream(propsfile);
props.store(out, "");
}
private void readPropsFromFile()
{
if(!propsdir.exists())
{
propsdir.mkdirs();
}
if(propsfile.exists())
{
FileInputStream inStream = new FileInputStream(propsfile);
props.load(inStream);
}else
{
ModLoader.getLogger().info("Properties file does not exist, it will be created.");
}
}
public String Version()
{
return "3.14159265";
}
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;
public static final ToolMaterial glowstone;
public static int AxeID;
public static int HoeID;
public static int PickaxeID;
public static int ShovelID;
public static int mSwordID;
Properties props = new Properties();
File propsdir = new File(ModLoader.getMinecraftInstance().getMinecraftDir(), "Block Properties");
File propsfile = new File(propsdir, "properties.txt");
static
{
glowstone = ( new ToolMaterial(3, 750, 7F, 2));
Axe = (new ItemAxe(AxeID, glowstone)).setItemName("magicAxe");
Hoe = (new ItemHoe(HoeID, glowstone)).setItemName("magicHoe");
Pick = (new ItemPickaxe(PickaxeID, glowstone)).setItemName("magicPickaxe");
Spade = (new ItemSpade(ShovelID, glowstone)).setItemName("magicShovel");
Sword = (new ItemSword(mSwordID, glowstone)).setItemName("magicSword");
}
}
try that
unfortunately, same errors...
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.
i have tried putting an opening bracket in front of the public
Here is my source 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.
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.
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.
Got it! The quote that is
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.
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.
Although, I see the new error message you posted that I totally missed. It seems like it is not recognizing where you define Sword, Hoe, Pick, Axe, Spade, and glowstone.
By the way, I don't know if you wanted the m before SwordID.
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.
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.
try that
I don't cheat; I just conveniently write the rules.
Oops, did I steal your mod? Well, I'm lazy, so if I found the motivation to do so, you did something wrong as a developer.
Additional Buildcraft Objects: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2310397
I'm currently also working on Remain in Motion. http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2104611
I can't advertise the others....
My Patreon: https://www.patreon.com/DA3DSOUL
unfortunately, same errors...
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.
This should be right since I use ScotTools as well.