Posted April 26, 201411 yr Hello everyone! I'm Florens and I have a question about modding for you. So I want to know how I can check if a particular item is in the top left furnace slot. I also want to do this with an IF statement so i can do something if thats true. I also don't have a lot of expierience with modding. Greetz, Florens
April 26, 201411 yr why do you want to write an if statement for? because you can do smelting recipes which detect the input and give you a set output
April 27, 201411 yr if (getStackInSlot(0) != null) { if (getStackInSlot(0).getItem() == myItem) { //do something! } } My mod for futher awesomeness: http://www.minecraftforum.net/topic/1714396-the-decopack-collection-v010-wip-made-a-signature-new-snapshot-1-screenshots-are-up-small-snapshot-1-is-out-for-147/#entry21250399
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.