Jump to content

Smelting recipe depend on tool damage


SkillCakey

Recommended Posts

How can i add a smelting recipe what depends on tool damage? Example: Not damaged iron pickaxe gives 3 iron ingots  when smelted, a bit less than half damaged iron pickaxe gives 2 iron ingots when smelted, a bit more than half damaged iron pickaxe gives 1 iron ingot when smelted and almost fully damaged iron pickaxe can't be smelted.

Link to comment
Share on other sites

It's going to junk up you're smelting recipes, but I don't see any other way. You could try `FurnaceRecipes.addSmelting(int itemID, int metadata, ItemStack itemstack, float experience)` as the damage of the pickaxe is pretty much equivalent to its metadata. However, since, for example the diamond pickaxe, has a heck of a lot of durability, you may end up having thousands of recipes...

 

But maybe there's a better way that somebody else knows of.

Link to comment
Share on other sites

Oh... I though like that, but didn't think of the fact it would need all in different recipes. Anyways, how can i use FurnaceRecipes.addSmelting? I want to test it anyways, but i couldn't get it work with tools(and i didn't really test it with blocks)... ;)

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.