Posted January 6, 201312 yr Hey, I started with modding and I am german, so sorry for bad english or bad knowledge... I want to create a item (sunny side egg). You must first smelt an egg in a furnace to get it. How can I do that? PS: Do you call it "Sunny Side Egg" in USA? or "Fried Egg"? And do you say "Cornflakes"? Thanks.
January 6, 201312 yr You create two items (or use one item but with different metadata, but that might not be that easy if you are new to modding): one for the raw version and one for the cooked. You create a way for a player to obtain raw egg and add smelting recipe for it. ( GameRegistry.addSmelting(ItemStack input, ItemStackoutput, float xp); ) http://www.minecraftforum.net/topic/1871576-152-161forgealchemy-enhance-your-brewing-expirience-now-with-downloads/ Check it out!
January 7, 201312 yr Where you add your recipes, add this line of code: GameRegistry.addSmelting(Item.egg.shiftedIndex, new ItemStack(Item.YOURMODITEMNAME), 20); Where you replace YOURMODITEMNAME with the name of the item which you used in the public static final. The 20 is for how much exp you'll get from it, you can customize it yourself. I just started coding last month, it's going great! I hope you'll get much success! /Falling
January 7, 201312 yr Where you add your recipes, add this line of code: GameRegistry.addSmelting(Item.egg.shiftedIndex, new ItemStack(Item.YOURMODITEMNAME), 20); Where you replace YOURMODITEMNAME with the name of the item which you used in the public static final. The 20 is for how much exp you'll get from it, you can customize it yourself. I just started coding last month, it's going great! I hope you'll get much success! /Falling the last number must be a float not int, also 20f exp its so much exp, like an gold ingot do just 1f why 20f for an egg?
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.