Posted March 22, 201411 yr Hey guys, My block texture won't appear in game. This is my line of code: blockCopper = new CopperOre(2000, Material.rock).setBlockName("blockCopper").setCreativeTab(resourceoverloadTab).setBlockTextureName(modid + ":" + "copperore"); If there is anything else you might need a look at, just tell me.
March 22, 201411 yr Have you tried testing in an actual client? My textures don't show up in my modding environment but show up in normal MC. http://www.slothygaming.com/img/ota.png[/img] If your grammar is shit and you blatantly don't know what you're doing, I will not help you.
March 22, 201411 yr Author Have you tried testing in an actual client? My textures don't show up in my modding environment but show up in normal MC. Hmm, i'll test it now and i'll get back to you with the result.
March 23, 201411 yr Hey guys, My block texture won't appear in game. This is my line of code: blockCopper = new CopperOre(2000, Material.rock).setBlockName("blockCopper").setCreativeTab(resourceoverloadTab).setBlockTextureName(modid + ":" + "copperore"); If there is anything else you might need a look at, just tell me. So, what version of Minecraft is this? Since you have a block ID, I know it aint 1.7.2 -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
March 23, 201411 yr I think in 1.6 it's setTextureName, not setBlockTextureName. Try that. If that doesn't work, tell us what directory you put the texture in and what modid equals. Lead DivineRPG Developer
March 23, 201411 yr Hi. If you search this forum for "using missing texture" you'll find a heap of people with this problem. Generally boils down to * texture name not set properly, or * textures stored in the wrong folder, or * the upper/lower case don't match exactly. -TGG
March 23, 201411 yr Author Hey guys, My block texture won't appear in game. This is my line of code: blockCopper = new CopperOre(2000, Material.rock).setBlockName("blockCopper").setCreativeTab(resourceoverloadTab).setBlockTextureName(modid + ":" + "copperore"); If there is anything else you might need a look at, just tell me. So, what version of Minecraft is this? Since you have a block ID, I know it aint 1.7.2 That must be my problem...It is meant to be 1.7.2
March 23, 201411 yr Then it looks like you are using some old 1.6.x code and expecting it to work. It won't work on 1.7.x if you don't get rid of Block and Item IDs that have no further purpose. Blocks and Items are registered as their instances now. The ID is auto-assigned and calling a constructor like Block(ID,...) should not even compile. And you'll need to go through all of that 1.6.x code looking for any reference to a Block or Item id (and things like Block.stone etc.) and change them to the 1.7.x way. -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
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.