Posted January 21, 201510 yr I'm trying to make a mod that would turn "BlockA" into "BlockB", but I dont see that option in the GameRegistry, there is only "BlockA" to "ItemA" and "ItemA" to "ItemB" GameRegistry.addSmelting(Block input, ItemStack output, float xp) : void GameRegistry.addSmelting(Item input, ItemStack output, float xp) : void GameRegistry.addSmelting(ItemStack input, ItemStack output, float xp) : void
January 21, 201510 yr Do you want the smelting in a furnace or something? If so, you must understand how blocks in inventories are handeled. Blocks in your inventory are actually not extends of the class Block. Instead they inherete the class called ItemBlock that represent blocks on your inventory. ItemBlock extends the Item class. I think you can now figure out how to do this. If my post helped you, please press that "Thank You"-button to show your appreciation. Also if you don't know Java, I would suggest you read the official tutorials by Oracle to get an idea of how to do this. Thanks, and good modding! Also if you haven't, set up a Git repo for your mod not only for convinience but also to make it easier to help you.
January 21, 201510 yr Hmm you can make the new ItemStack using your own Block; like this: new ItemStack(BlockB, 1); I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
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.