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

Ok so im trying to make a mod and for some reason this morning my textures for my items arent rendering in game. I been staring at my code for 3 hours now and I cant figure out the problem! Please take a look at it and tell me what ive missed. Thank you

 

code for main class: http://pastebin.com/hscN6Fyi

 

generic AIitems class: http://pastebin.com/M0wJCfyd

 

generic OreBlock class: http://pastebin.com/MLyLpkUg

 

Such clean code. You deserve some applause.

 

But I can't see anything wrong really.

Check if, when booting minecraft, the log says it can't find the textures.

Otherwise it might just be a known bug in the current forge versions that sometimes desyncs minecraft and forge.

I don't know if they have fixed that yet but the solution is equipping and deequipping a custom texturepack. 

  • Author

Such clean code. You deserve some applause.

 

But I can't see anything wrong really.

Check if, when booting minecraft, the log says it can't find the textures.

Otherwise it might just be a known bug in the current forge versions that sometimes desyncs minecraft and forge.

I don't know if they have fixed that yet but the solution is equipping and deequipping a custom texturepack.

 

Thank a lot man I learn from the best :) anyway the texturepack solution worked for me thank you very much!!!!!

you ain't using the: setTextureName("");

i'm sure you can figure out how it works.

 

He's setting icons in his block class so he doesn't need that. And I don't know what other people prefer but I think this way is generally better.

- It provides cleaner code, such as that mess everyone always makes in their main class with the blocks.

- It provides more information about itself in its own block class. E.g. no matter the programming language you should always strive to keep information about an object to itself instead of spreading it everywhere.

- More Flexibility, the method is more flexible than the setter.

- More maintainability, because of the above mentioned it allows the code to be far more maintainable.

 

And you are welcome, Redfoxhint.

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.