Jump to content

[FIXED][1.4.2] [6.0.1] Custom pickaxe refuses to break obsidian


Recommended Posts

Im new to modding and I have no clue why this still wont work


package archangel.emeraldtools.item;


import net.minecraft.src.Block;

import net.minecraft.src.EnumToolMaterial;

import net.minecraft.src.Item;

import net.minecraft.src.ItemStack;

import net.minecraftforge.common.EnumHelper;

import archangel.emeraldtools.lib.ItemIds;

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

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


public class ModItems {

//The tool material

public static EnumToolMaterial emeraldT = EnumHelper.addToolMaterial("emeraldT", 5, 1800, 11F, 3, 11);

    /* Item name constants */

    public static final String EMERALD_PICKAXE_NAME = "pickaxeEmerald";


    /* Mod item instances */

    public static void init() {


        /* Initialize each mod item individually */

pickaxeEmerald = new EmeraldPickaxe(ItemIds.EMERALDPICKAXE, emeraldT).setIconIndex(4).setItemName("EmeraldPickaxe");




package archangel.emeraldtools.item;


import net.minecraft.src.CreativeTabs;

import net.minecraft.src.EnumToolMaterial;

import net.minecraft.src.ItemPickaxe;

import archangel.emeraldtools.CommonProxy;


public class EmeraldPickaxe extends ItemPickaxe {

public EmeraldPickaxe(int id, EnumToolMaterial par2EnumToolMaterial) {

super(id, par2EnumToolMaterial);

maxStackSize = 64;




public String getTextureFile() {

return CommonProxy.ITEMS_PNG;






I have even copied the same material setup for diamond and it still doesnt work

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.

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.

  • Create New...

Important Information

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