Jump to content

Recommended Posts

Posted (edited)

So I'm setting up a custom furnace with 4 slots, and I've already got a block registered, now I just need to create a tileentity and create the GUI. I'm familiar with setting up a gui with IItemhandler so that's not really anything new, but in the TileEntity, how exactly should I go about checking what kind of food an item is? In order to cook it I mean, and whether it's uncooked or not.

Edited by Turtledove
Posted
2 hours ago, TallYate said:

Cooked and uncooked foods are seperate items. You can use an uncooked tag (if it exists) in the recipe, but you can't get the result.

Is there a way I can at least see what type of food an ItemFood object is though?

Posted (edited)

Hmm, would it work to just check for the item's registry name? Or would this not work in an obfuscated environment? I.e. check if the item's registry name has the word "cooked" in it.

Edited by Turtledove

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.