ok, well ill stop focusing on that, uhm can u figure out why my mod doesnt work in real minecraft?
the mod is a tools mod i made the code is:
[spoiler]
public class mod_Tools extends BaseMod
{
public static final sv Pickaxe;
public static final sv Spade;
public static final sv Sword;
public static final sv Axe;
public static final sv Hoe;
public mod_Tools()
{
Pickaxe.bt = ModLoader.addOverride("/gui/items.png", "/Pick.png");
Spade.bt = ModLoader.addOverride("/gui/items.png", "/Spade.png");
Sword.bt = ModLoader.addOverride("/gui/items.png", "/Sword.png");
Axe.bt = ModLoader.addOverride("/gui/items.png", "/Axe.png");
Hoe.bt = ModLoader.addOverride("/gui/items.png", "/Hoe.png");
ModLoader.AddName(Pickaxe, "Redstone Pickaxe");
ModLoader.AddName(Spade, "Redstone Spade");
ModLoader.AddName(Sword, "Redstone Sword");
ModLoader.AddName(Axe, "Redstone Axe");
ModLoader.AddName(Hoe, "Redstone Hoe");
ModLoader.AddRecipe(new ul(Pickaxe, 1), new Object[] {
"RRR", " S ", " S ", Character.valueOf('S'), sv.E, Character.valueOf('R'), sv.aD
});
ModLoader.AddRecipe(new ul(Spade, 1), new Object[] {
" R ", " S ", " S ", Character.valueOf('S'), sv.E, Character.valueOf('R'), sv.aD
});
ModLoader.AddRecipe(new ul(Sword, 1), new Object[] {
"R", "R", "S", Character.valueOf('S'), sv.E, Character.valueOf('R'), sv.aD
});
ModLoader.AddRecipe(new ul(Axe, 1), new Object[] {
"RR ", "RS ", " S ", Character.valueOf('S'), sv.E, Character.valueOf('R'), sv.aD
});
ModLoader.AddRecipe(new ul(Hoe, 1), new Object[] {
"RR ", " S ", " S ", Character.valueOf('S'), sv.E, Character.valueOf('R'), sv.aD
});
}
public String Version()
{
return "3.14159265";
}
static
{
Pickaxe = (new al(123, pv.d)).a("asdf");
Spade = (new ach(124, pv.d)).a("asfa");
Sword = (new ja(125, pv.d)).a("asga");
Axe = (new kt(126, pv.d)).a("afga");
Hoe = (new gb(127, pv.d)).a("ffga");
}
}
[spoiler]
So yea when i reobfuscate it i put this in and i put the png files in with modloader 1.8.1
and i get to mojang sign then crashes, got any ideas??
hey i made a tool and a iron stick the stick works but a error comes up when i recompile yea, Here is my code: (the error is about the recipe)
[.spoiler]
package net.minecraft.src;
import java.util.ArrayList;
import java.util.Random;
public class mod_GreenSpade extends BaseMod
{
public static final Item spde = (new ItemSpade(118, EnumToolMaterial.EMERALD)).setItemName("Dirt Spade").setIconIndex(ModLoader.addOverride("/gui/items.png", "/mymod/spade.png"));
public String Version() {
return " - made by darkaoer2";
}
static {
}
public mod_GreenSpade() {
ModLoader.AddRecipe(new ItemStack(mod_GreenSpade.spde, 1), new Object[] {"1", "7", Character.valueOf('1'), Block.dirt, Character.valueOf('7'), Item.IronStick});
ModLoader.AddName(mod_GreenSpade.spde, "Green Spade");
}
public void GenerateSurface(World world, Random random, int i, int j) {
}
public void GenerateNether(World world, Random random, int i, int j) {
}
}
[./spoiler]
Please solve this :biggrin.gif:
Recipe:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_GreenSpade.java:16: error: cannot find symbol
i got 3 errors when i did that :sad.gif: so idk what to do
Code currently:
package net.minecraft.src;
import java.util.ArrayList;
import java.util.Random;
public class mod_GreenSpade extends BaseMod
{
public static final Item spde = (new ItemSpade(118, EnumToolMaterial.EMERALD)).setItemName("fadf").setIconIndex(ModLoader.addOverride("/gui/items.png", "/mymod/spade.png"));
public String Version() {
return " - made by darkaoer2";
}
static {
}
public mod_GreenSpade() {
ModLoader.AddRecipe(new ItemStack(spde, 1), new Object[] {
"1", "7", Character.valueOf('1'), Block.dirt, Character.valueOf('7'), Item.IronStick
});
ModLoader.AddName(mod_GreenSpade.spde, "Green Spade");
}
public void GenerateSurface(World world, Random random, int i, int j) {
}
public void GenerateNether(World world, Random random, int i, int j) {
}
}
the mod is a tools mod i made the code is:
[spoiler]
So yea when i reobfuscate it i put this in and i put the png files in with modloader 1.8.1
and i get to mojang sign then crashes, got any ideas??
so hold on xD
[.spoiler]
[./spoiler]
Please solve this :biggrin.gif:
Recipe:
Error:
[.spoiler]
[./spoiler]
once again u fail to spoiler, its like the [.code] [./code]
put [.spoiler] at the begining and put [./spoiler] at the end
wth is .spde? take that off.
NEW
you used " instead of ' you dont need to declare the class of the item in that spot but you do when character.valueOf
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_GreenSpade.java:16: error: cannot find symbol
"1", "7", Character.valueOf('1'), Block.dirt, Character.valueOf('7'), Item.IronS
tick
static{
}
and just copy paste my complete code i sent u in.
Code currently:
package net.minecraft.src;
import java.util.ArrayList;
import java.util.Random;
public class mod_GreenSpade extends BaseMod
{
public static final Item spde = (new ItemSpade(118, EnumToolMaterial.EMERALD)).setItemName("fadf").setIconIndex(ModLoader.addOverride("/gui/items.png", "/mymod/spade.png"));
public String Version() {
return " - made by darkaoer2";
}
static {
}
public mod_GreenSpade() {
ModLoader.AddRecipe(new ItemStack(spde, 1), new Object[] {
"1", "7", Character.valueOf('1'), Block.dirt, Character.valueOf('7'), Item.IronStick
});
ModLoader.AddName(mod_GreenSpade.spde, "Green Spade");
}
public void GenerateSurface(World world, Random random, int i, int j) {
}
public void GenerateNether(World world, Random random, int i, int j) {
}
}
make it
Item.stick