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

I want to update a forge mod I made to work with MC 1.5+, but I'm having trouble with the new texture system.  My mod changes how a vanilla block is rendered on the client (in this case, it changes the standard rail blocks).  I used to be able to just register a multi-texture file in the mod initializer method and set the block's render id and texture file to my own.  All the tutorials I've seen for MC 1.5+ are added in the block class.  I really don't want to override the vanilla class for this mod as it complicates the installation process.  Is there a way to register a texture file outside of a block class?

  • Author

I want to update a forge mod I made to work with MC 1.5+, but I'm having trouble with the new texture system.  My mod changes how a vanilla block is rendered on the client (in this case, it changes the standard rail blocks).  I used to be able to just register a multi-texture file in the mod initializer method and set the block's render id and texture file to my own.  All the tutorials I've seen for MC 1.5+ are added in the block class.  I really don't want to override the vanilla class for this mod as it complicates the installation process.  Is there a way to register a texture file outside of a block class?

sounds like you may need to either reflect to get access to the block's icon and replace it with your own, or reflect to replace the block instance with one of your own which will bind your custom texture

I think its my java of the variables.

sounds like you may need to either reflect to get access to the block's icon and replace it with your own, or reflect to replace the block instance with one of your own which will bind your custom texture

I think its my java of the variables.

  • Author

sounds like you may need to either reflect to get access to the block's icon and replace it with your own, or reflect to replace the block instance with one of your own which will bind your custom texture

 

I'm not sure what you mean by "reflect to get access", and I can't seem to replace the instance of the block easily. 

  • Author

sounds like you may need to either reflect to get access to the block's icon and replace it with your own, or reflect to replace the block instance with one of your own which will bind your custom texture

 

I'm not sure what you mean by "reflect to get access", and I can't seem to replace the instance of the block easily. 

  • Author

I think I may have answered my own question.  I was surfing the code when I found the TextureStitchEvent.  It seems that the pre texture stitch even happens at just the right time to register the textures.  However, the textures aren't appearing correctly.  All I'm seeing is diamond block, gold block, and emerald block textures.  Any reason why that might be?

 

Edit: never mind.  I was having problems with how many times registerIcon() actually gets called.

  • Author

I think I may have answered my own question.  I was surfing the code when I found the TextureStitchEvent.  It seems that the pre texture stitch even happens at just the right time to register the textures.  However, the textures aren't appearing correctly.  All I'm seeing is diamond block, gold block, and emerald block textures.  Any reason why that might be?

 

Edit: never mind.  I was having problems with how many times registerIcon() actually gets called.

check the debug texture that's outputted in the /jars directory to see if it's there, some code will need to be shown :)

I think its my java of the variables.

check the debug texture that's outputted in the /jars directory to see if it's there, some code will need to be shown :)

I think its my java of the variables.

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.