Jump to content

Recommended Posts

Posted

I can't seem to find a way to have the smelting input be an item rather than a block.

GameRegistry.addSmelting(Item.egg, new ItemStack(CookedEggs), 0F);

I hope that it's not glaringly obvious because feeling stupid isn't fun.

Posted

Notice that the first parameter is an integer, not a Block object.

You could look to see how they do it for something like pork or beef. Perform a reference search in the project to see that Item.porkRaw is used in the constructor of FurnaceRecipes, specifically calling the addSmelting method of FurnaceRecipes. This addSmelting method is directly the same method called by GameRegistry.addSmelting, so we can infer what to do from here.

Cooking pork uses the shiftedIndex attribute inside Item.porkRaw, so you can try using that in your call.

Posted

It was indeed glaringly obvious. I'd tried shiftedIndex before, but I'd apparently done it wrong. Thanks for the help.

Now, to override mob drops, should I be extending Entity<MobName>?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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