Posted March 17, 201312 yr I have added a block called nightium which has been put in when I go to put the ore in I did this @Mod(modid = "Parallel Worlds", name = "Parallel Worlds", version = "1.0.0") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class ParallelWorlds { @SidedProxy(clientSide = "parallelworlds.client.ClientProxyParallelWorlds", serverSide = "parallelworlds.common.CommonProxyParallelWorlds") public static ClientProxyParallelWorlds proxy = new ClientProxyParallelWorlds(); Block parallelworldsBlock; int parallelworldsBlockID = 682; @Init public void load(FMLInitializationEvent event){ parallelworldsBlock = new BlockParallelWorldsBlock(parallelworldsBlockID, 0, Material.iron).setUnlocalizedName("Nightium").setHardness(8.0F).setResistance(10000.0F).setStepSound(Block.soundStoneFootstep); gameRegisters(); languageRegisters(); proxy.registerRenders(); } public void gameRegisters(){ GameRegistry.registerBlock(parallelworldsBlock);} public void languageRegisters(){ LanguageRegistry.addName(parallelworldsBlock, "Nightium"); } Block NightiumOre; int NightiumOreID = 681; @Init public void load1(FMLInitializationEvent event){ NightiumOre = new BlockNightiumOre(NightiumOreID, 1, Material.iron).setUnlocalizedName("Nightium Ore").setHardness(8.0F).setResistance(100000.0F).setStepSound(Block.soundStoneFootstep).setLightValue(1.0F); gameRegisters(); languageRegisters(); proxy.registerRenders(); } public void gameRegisters1(){ GameRegistry.registerBlock(NightiumOre); } public void languageRegisters1(){ LanguageRegistry.addName(NightiumOre, "NightiumOre"); } } This is my proxy public class ClientProxyParallelWorlds extends CommonProxyParallelWorlds{ @Override public void registerRenders() { MinecraftForgeClient.preloadTexture("/textures/blocks/Nightium.png"); } public void registerRenders1(){ MinecraftForgeClient.preloadTexture("/textures/blocks/NightiumOre.png"); } } This is the BlockNightiumOre File public class BlockNightiumOre extends Block{ public BlockNightiumOre(int id, int texture, Material mat){ super(id, mat); this.setCreativeTab(CreativeTabs.tabBlock); } public String getTextureFile(){ return "/parallelworlds/parallelworlds_Blocks_NightiumOre.png"; } } Any help? P.s I know ore is different code to block slightly just wondering if anyone can highlight the mistakes STOP CRUCIFYING NEW MODDERS!!!!
March 17, 201312 yr I do not understand what the question is. As far as your post is concerned it has no errors so it's fine. If your going to post an code without a error, how are we supposed to help you with an error?
March 17, 201312 yr Author I do not understand what the question is. As far as your post is concerned it has no errors so it's fine. If your going to post an code without a error, how are we supposed to help you with an error? The block isn't going into the game. I am trying to make an ore in minecraft but when i go into the creative tabs in-game the item doesn't exist STOP CRUCIFYING NEW MODDERS!!!!
March 17, 201312 yr 1. You need to make your Block variables public and static. 2. Your proxy declaration is a bit wrong. Look here on how to do it right: http://www.minecraftforge.net/wiki/Basic_Modding Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
March 17, 201312 yr Author 1. You need to make your Block variables public and static. 2. Your proxy declaration is a bit wrong. Look here on how to do it right: http://www.minecraftforge.net/wiki/Basic_Modding I followed the same code as previous and only nightium has appeared the ore hasn't. Any suggestions? I'm new to making new blocks and ores STOP CRUCIFYING NEW MODDERS!!!!
March 17, 201312 yr 1. You need to make your Block variables public and static. 2. Your proxy declaration is a bit wrong. Look here on how to do it right: http://www.minecraftforge.net/wiki/Basic_Modding I followed the same code as previous and only nightium has appeared the ore hasn't. Any suggestions? I'm new to making new blocks and ores You mean in the creative tab? Either way, you made both block variables public and static as I said? Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
March 17, 201312 yr Author 1. You need to make your Block variables public and static. 2. Your proxy declaration is a bit wrong. Look here on how to do it right: http://www.minecraftforge.net/wiki/Basic_Modding I followed the same code as previous and only nightium has appeared the ore hasn't. Any suggestions? I'm new to making new blocks and ores You mean in the creative tab? Either way, you made both block variables public and static as I said? The ore isnt in the game at all. In the process now STOP CRUCIFYING NEW MODDERS!!!!
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.