Posted February 11, 20178 yr 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 February 18, 20178 yr by tcrall71 New information following more testing
February 11, 20178 yr 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.
February 13, 20178 yr Author I have created a GitHub account. If I have done things correctly, you can see my code at: https://github.com/tcrall71/BedderBeds-1.10.2-2.1/tree/master/main
February 13, 20178 yr Author 15 hours ago, diesieben07 said: Your repository does not contain the build.gradle. Your repository should mimic your project layout on your computer: |_build.gradle |_src |_main |_java |_resources I have added what you asked for: https://github.com/tcrall71/BedderBeds-1.10.2-2.1
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.