Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

  • 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.

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

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

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

  • 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

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.