Jump to content

How would I go about creating a auto smelting pickaxe?


Nieue

Recommended Posts

Hello, as you can see in the title I'd like to create a auto smelting pickaxe.

Here's my pickaxe class:

 

package mods.Millarki.common;

 

import java.util.List;

 

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

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.ItemPickaxe;

import net.minecraft.item.ItemStack;

 

public class FlamePickaxe extends ItemPickaxe

{

 

public FlamePickaxe(int par1, EnumToolMaterial par2EnumToolMaterial)

{

super(par1, par2EnumToolMaterial);

}

 

    /**

    * Return whether this item is repairable in an anvil.

    */

@Override

    public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)

    {

        return par2ItemStack.itemID == Millarki.FlameChunk.itemID;

    }

 

    @Override

public void registerIcons(IconRegister par1IconRegister)

{

itemIcon = par1IconRegister.registerIcon("Millarki:flamepickaxe");

}

}

 

I'd also like to create a pickaxe that does the same, only then with the recipes from my custom furnace.

How do I do this

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.