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

Greetings! I've made a custom leaf block for a custom tree although I don't understand how to get the texture to show. I've looked at other people's custom leaf block source code but none of the functions have methods assigned in the class so they don't work. If someone could tell me what I'm doing wrong or direct me to custom leaf class code that has working textures that would be excellent. Any help is greatly appreciated!

 

Custom Leaf Class - http://pastebin.com/xTsnqauG

 

Hi

 

The error log should show a line something like

"texture not found: showing missing texture"

 

Pls post that here?

 

>  none of the functions have methods assigned in the class

This might be an obvious question- do you realise that, if BlockTulipTreeLeaves extends BlockLeavesBase, and BlockLeavesBase extends Block, then you can override Block methods in your BlockTulipTreeLeaves?

 

-TGG

 

  • Author

Thank you for the reply and here is the missing textures error I get.

 

2014-05-12 05:53:01 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/BlockTulipTreeLeavesOpaque.png

2014-05-12 05:53:01 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/BlockTulipTreeLeaves.png

2014-05-12 05:53:01 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_203_BlockTulipSapling_Tulip.png

 

And I've named the textures to BlockTulipTreeLeaves along with BlockTulipTreeLeavesOpaque and I've also tried changing the texture named to "modname/BlockTulipTreeLeaves/" or Main.modid + ":" + "BlockTulipTreeLeaves" yet nothing seems to be working. The texture file is of course.

Hi

 

A few things to try

 

This link shows where the files should go

http://greyminecraftcoder.blogspot.com.au/2013/12/overview-of-forge-and-what-it-can-do.html

If you still can't find it, this might help

http://www.minecraftforge.net/forum/index.php/topic,11963.0.html

Keep in mind that the upper/lower case must match exactly.

You should use Main.modid + ":BlockTulipTreeLeaves" otherwise it will look in the minecraft resources folder (that's what the minecraft: in your error log means)

 

It also looks like you've forgotten to setTextureName your BlockTulipSapling_Tulip properly (hence the MISSING_ICON_TILE_203).

 

-TGG

 

 

 

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.