Posted June 25, 20205 yr 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 June 26, 20205 yr by Turtledove
June 25, 20205 yr 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.
June 26, 20205 yr Author 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?
June 26, 20205 yr Author 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 June 26, 20205 yr by Turtledove
June 26, 20205 yr It looks like ItemFood is a legacy concept, what version is this? Edited June 26, 20205 yr by Curle
June 26, 20205 yr You should create an .json item tag containing all raw food items and check for that.
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.