Jump to content

Tools don't want to work!!


iSteven2001

Recommended Posts

Code: package Eclipse7.overpowerMod.item;

 

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.ItemPickaxe;

 

public class ItemSingotPickaxe extends ItemPickaxe{

 

public ItemSingotPickaxe(int par1, EnumToolMaterial par2EnumToolMaterial) {

super(par1, par2EnumToolMaterial);

this.setCreativeTab(CreativeTabs.tabTools);

}

 

public void registerIcons(IconRegister iconRegister) {

itemIcon = iconRegister.registerIcon("overpower:SPickaxe");

}

}

 

Link to comment
Share on other sites

And your main mod file?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

My main: package Eclipse7.overpowerMod.common;

 

import Eclipse7.overpowerMod.item.ItemOpingotSword;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.ItemAxe;

import net.minecraft.item.ItemStack;

import net.minecraft.item.ItemSword;

import net.minecraftforge.common.EnumHelper;

import net.minecraft.item.Item;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

 

 

@Mod(modid = "OverPower", name = "OverPower", version = "0.1 Alpha")

public class OverPower {

 

//EnumToolMaterial

public static EnumToolMaterial toolOPingot = EnumHelper.addToolMaterial("OPINGOT", 9, 1976, 15, 7, 6);

 

//Registrations

public static Item OPingotPickaxe = new ItemAxe(2000, toolOPingot).setUnlocalizedName("OPickaxe");

public static Item OPingotSword = new ItemOpingotSword(2001, toolOPingot).setUnlocalizedName("OSword");

public static Item OPingotAxe = new ItemAxe(2002, toolOPingot).setUnlocalizedName("OAxe");

public static Item OPingotShovel = new ItemSword(2003, toolOPingot).setUnlocalizedName("OShovel");

 

 

 

 

public OverPower() {

LanguageRegistry.addName(OPingotPickaxe, "Opickaxe");

LanguageRegistry.addName(OPingotSword, "Opsword");

LanguageRegistry.addName(OPingotAxe, "Opaxe");

LanguageRegistry.addName(OPingotShovel, "Opshovel");

 

GameRegistry.addRecipe(new ItemStack(OPingotPickaxe, 1), new Object [] {

"***", " x ", " x ", 'x', Item.stick,  '*', Item.appleGold

});

GameRegistry.addRecipe(new ItemStack(OPingotSword, 1), new Object [] {

" * ", " * ", " x ", 'x', Item.stick, '*', Item.appleGold

});

GameRegistry.addRecipe(new ItemStack(OPingotShovel, 1), new Object [] {

" * ", " x ", " x ", 'x', Item.stick, '*',Item.appleGold

});

GameRegistry.addRecipe(new ItemStack(OPingotAxe, 1), new Object [] {

"** ", "*x "," x ",'x', Item.stick, '*', Item.appleGold

});

 

 

 

 

 

 

 

 

 

 

 

 

 

}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

}

 

Link to comment
Share on other sites

Dude.

 

You're not referencing "ItemSingotPickaxe" in your main mod.  OF COURSE it's not going to "work"

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

sorry I put the worse one...

 

That the right one:package Eclipse7.overpowerMod.item;

 

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.ItemPickaxe;

 

public class ItemOPingotPickaxe extends ItemPickaxe{

 

public ItemOPingotPickaxe(int par1, EnumToolMaterial par2EnumToolMaterial) {

super(par1, par2EnumToolMaterial);

this.setCreativeTab(CreativeTabs.tabTools);

}

 

public void registerIcons(IconRegister iconRegister) {

itemIcon = iconRegister.registerIcon("overpower:OPickaxe");

}

}

 

Link to comment
Share on other sites

You're still not referencing that class.  At all.

 

public static Item OPingotPickaxe = new ItemAxe(2000, toolOPingot).setUnlocalizedName("OPickaxe");

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.