Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

My tools don't want to work.Like Pickaxe don't mine the blocks.Axe don't chop wood.Shovel don't dig.The strange thig is the sword works!

Plz Help! I'm new so I will post more questions!!!

  • Author

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");

}

}

 

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.

  • Author

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

});

 

 

 

 

 

 

 

 

 

 

 

 

 

}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

}

 

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.

  • Author

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");

}

}

 

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.