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.

[1.10.2] Item with metadata 0 not loading texture, textures with metadata 1-15 are the same structure and show correctly

Featured Replies

Posted

I am trying to create two items (a colored bed and colored sleeping bag) with 16 sub-items (colors) each.  The textures for the items all seem to be registered correctly and show up in the game EXCEPT for metadata 0 (white) for both items.  When I run the game, the console (Eclipse) does not report any missing texture messages, or any errors at all that I can find.  The white texture files are .png files correctly named in EXACTLY the same format as the other colors and in the textures/items directory with the rest of the working textures.  The model .jsons are in the models/item directory with the rest of the working model files, follow the same format as the other colors, and have the correct names in the same format as the other colors.  I can't find any capitalization errors or misspellings.  I am using the EnumDyeColor values, and have confirmed that white in that list is in fact called "white" and is value 0.  When I print the variant names for the item registration to the console as it creates the Resource Location list to see if they are being registered with the right name, it prints "0" and "white" in exactly the same format as the rest of the colors.  What am I doing wrong?

 

My code is now located here: https://github.com/tcrall71/BedderBeds-1.10.2-2.1

 

[Edit:]

After exhaustive testing:

--using the .png for a different model to prove it works

--using the model .json for a different variant to prove it works

--using different .jsons and .pngs for variant 0 to prove the model and texture files are not the issue

--creating an entirely new mod with the minimum code required for an item with metadata, including stripping out all loops, switches, references to other classes and methods in case the error is somewhere I am not looking at

 

I am becoming fairly sure that this is a bug in Forge, and not my error at all.  Can anyone help me confirm this?

 

 

 

 

 

 

 

 

 

 

Edited by tcrall71
New information following more testing

Don't trust the console to give you all warnings. Dig up the log file to see missing textures.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

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.