This is really good for your first mod! I wanted to do something like this, I already have the textures, but I came across a coding recompiling error and never finished again. Now I know how to fix the error, but I am too lazy to make the whole mod. :biggrin.gif: So I basically went with something easy like making a new weapon :smile.gif: As you can see in my sig It might look like crap, but hey it was my first mod just like yours :wink.gif: But good job overall :smile.gif:
Thanks! I am planning on making this an in depth mod overall. Such as armor, new weapons, other things of that nature. Again thanks!
EDIT: Your mod looks interesting, may have to download it.
A nice first mod, but you may want to tweak it a little, to make the mining speed quick but have the durability of stone or iron, or make the mining speed slow and have the durability better than diamond.
That does strike me as quite odd :huh.gif: . If that's the case I'll probably have to leave it to a more experienced modder. But I would still copy-paste the source code from the new classes that you made into a post, as long as it's not like 20 pages long. That's the way we do it on coding forums. I can sift through and see if there are any easy-to-find errors that wouldn't be picked up by the compiler. If I can't I'm afraid you'll have to hold on and wait for the rescue of a modder who's more familiar with the process. :sad.gif:
Items:
public static Item sandwhich = (new ItemFood(110, 7, false)).setIconCoord(9, 6).setItemName("sandwhich");
public static Item axeObsidian;
public static Item pickaxeObsidian;
public static Item hoeObsidian;
public static Item shovelObsidian;
public static Item swordObsidian;
RecipesTools:
public RecipesTools()
{
recipeItems = (new Object[][] {
new Object[] {
Block.planks, Block.cobblestone, Item.ingotIron, Item.diamond, Item.ingotGold, Block.obsidian
}, new Object[] {
Item.pickaxeWood, Item.pickaxeStone, Item.pickaxeSteel, Item.pickaxeDiamond, Item.pickaxeGold, Item.pickaxeObsidian
}, new Object[] {
Item.shovelWood, Item.shovelStone, Item.shovelSteel, Item.shovelDiamond, Item.shovelGold, Item.shovelObsidian
}, new Object[] {
Item.axeWood, Item.axeStone, Item.axeSteel, Item.axeDiamond, Item.axeGold, Item.axeObsidian
}, new Object[] {
Item.hoeWood, Item.hoeStone, Item.hoeSteel, Item.hoeDiamond, Item.hoeGold, Item.hoeObsidian
}
RecipesWeapons:
public class RecipesWeapons
{
public RecipesWeapons()
{
recipeItems = (new Object[][] {
new Object[] {
Block.planks, Block.cobblestone, Item.ingotIron, Item.diamond, Item.ingotGold, Block.obsidian
}, new Object[] {
Item.swordWood, Item.swordStone, Item.swordSteel, Item.swordDiamond, Item.swordGold, Item.swordObsidian
}
});
That covers all that I edited I think I may see a problem. I will look into it.
I'm new to modding too, but not to java programming. You're being just a bit vague. Did you get any errors at all when you recompiled the code you altered? If so, post those here.
Also, if you want to describe or copy-paste as much of the altered code as you can, that would be helpful too (use the "insert code snippet" tool above) and would probably get you some more responses. What you're presenting with us now is frankly a debugging nightmare. "I tried this and now it's broke." : P
I had no errors what so ever, just after copying the newly made CLASS folders over Minecraft won't start anymore.
So, basically I just started modding. I made a tool set mod, and am planning on putting it in my actual Minecraft.jar. So I reobfusticated the files I changed, placed them in the Minecraft.jar, deleted the META-INF, and booted up Minecraft. But I have a black screen. So I was wondering what I did wrong.
0
Thanks! I am planning on making this an in depth mod overall. Such as armor, new weapons, other things of that nature. Again thanks!
EDIT: Your mod looks interesting, may have to download it.
0
0
UPDATED!
0
Yes I see what you mean.
0
0
I don't know, I didn't really think about that and I don't really know how to make it compatible
0
0
What strength input do you put in so they last forever?
EDIT: Pictures posted.
0
I do indeed understand that there have been a lot of mods like this. But for my first mod I decided to do something easy.
Anyway, I plan on updating this mod, and the textures. I plan on adding armor, and many other things that will enhance your Minecraft experience.
UPDATE: Now ModLoader compatible! Next step is working towards server mod.
Download the most current version here.
v0.3
AdF.ly because I need money.
Here is a video tutorial on how to install the mod made by WIlly1sminecraftofficial!
Here is a great video made by WIlly1sminecraftofficial
This mod would not have been possible if it wasn't for the tutorials by Birjo and an enormous amount of help from buggzboy!
Thank you!
0
En_US.LANG:
item.axeObsidian.name=Obsidian Axe
item.axeObsidian.desc=
item.hoeObsidian.name=Obsidian Hoe
item.hoeObsidian.desc=
item.pickaxeObsidian.name=Obsidian Pickaxe
item.pickaxeObsidian.desc=
item.shovelObsidian.name=Obsidian Shovel
item.shovelObsidian.desc=
item.swordObsidian.name=Obsidian Sword
item.swordObsidian.desc=
item.sandwhich.name=Sandwhich
item.sandwhich.desc=
Added these at the end.
CraftingManager
addRecipe(new ItemStack(Item.axeObsidian, 1), new Object[] {
"XX", "X#", "#", Character.valueOf('#'), Item.stick, Character.valueOf('X'), Block.obsidian
});
addRecipe(new ItemStack(Item.shovelObsidian, 1), new Object[] {
"X", "#", "#", Character.valueOf('X'), Block.obsidian, Character.valueOf('#'), Item.stick
});
addRecipe(new ItemStack(Item.hoeObsidian, 1), new Object[] {
"XX", "#", "#", Character.valueOf('X'), Block.obsidian, Character.valueOf('#'), Item.stick
});
addRecipe(new ItemStack(Item.pickaxeObsidian, 1), new Object[] {
"XXX", "#", "#", Character.valueOf('X'), Block.obsidian, Character.valueOf('#'), Item.stick
});
addRecipe(new ItemStack(Item.swordObsidian, 1), new Object[] {
"X", "X", "#", Character.valueOf('X'), Block.obsidian, Character.valueOf('#'), Item.stick
});
addRecipe(new ItemStack(Item.sandwhich, 5), new Object[] {
"#", "X", "#", Character.valueOf('#'), Item.bread, Character.valueOf('X'), Item.porkCooked
});
EnumToolMaterial:
WOOD("WOOD", 0, 0, 59, 2.0F, 0),
STONE("STONE", 1, 1, 131, 4F, 1),
IRON("IRON", 2, 2, 250, 6F, 2),
EMERALD("EMERALD", 3, 3, 1561, 8F, 3),
GOLD("GOLD", 4, 0, 32, 12F, 0),
OBSIDIAN("OBSIDIAN", 5, 3, 2000, 14F, 3);
Items:
public static Item sandwhich = (new ItemFood(110, 7, false)).setIconCoord(9, 6).setItemName("sandwhich");
public static Item axeObsidian;
public static Item pickaxeObsidian;
public static Item hoeObsidian;
public static Item shovelObsidian;
public static Item swordObsidian;
RecipesTools:
public RecipesTools()
{
recipeItems = (new Object[][] {
new Object[] {
Block.planks, Block.cobblestone, Item.ingotIron, Item.diamond, Item.ingotGold, Block.obsidian
}, new Object[] {
Item.pickaxeWood, Item.pickaxeStone, Item.pickaxeSteel, Item.pickaxeDiamond, Item.pickaxeGold, Item.pickaxeObsidian
}, new Object[] {
Item.shovelWood, Item.shovelStone, Item.shovelSteel, Item.shovelDiamond, Item.shovelGold, Item.shovelObsidian
}, new Object[] {
Item.axeWood, Item.axeStone, Item.axeSteel, Item.axeDiamond, Item.axeGold, Item.axeObsidian
}, new Object[] {
Item.hoeWood, Item.hoeStone, Item.hoeSteel, Item.hoeDiamond, Item.hoeGold, Item.hoeObsidian
}
RecipesWeapons:
public class RecipesWeapons
{
public RecipesWeapons()
{
recipeItems = (new Object[][] {
new Object[] {
Block.planks, Block.cobblestone, Item.ingotIron, Item.diamond, Item.ingotGold, Block.obsidian
}, new Object[] {
Item.swordWood, Item.swordStone, Item.swordSteel, Item.swordDiamond, Item.swordGold, Item.swordObsidian
}
});
That covers all that I edited I think I may see a problem. I will look into it.
EDIT: Fixed it, problem was I left out one.
0
I had no errors what so ever, just after copying the newly made CLASS folders over Minecraft won't start anymore.
0
0
Please?
0
Hm, I'll have to use that sometime. Glad you found it,
0
Strange. I don't see it either. Try checking in BlockOreStorage in the Src file.