Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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

Posted

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

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.