Jongh Posted February 18, 2016 Posted February 18, 2016 Trying to give a new item a texture using 1.8 forge, but the console is giving this error: "Model definition for location tutorial:tutorial_item#inventory not found" Checked that called creativeTab, registered the new item, included the json and the item texture, all the package names are lowercase, but still the item is the purple and black cube ingame. Wondering if someone could point out anything that I need to fix. Here's my code: https://www.mediafire.com/?bd1zd5zubm4o9r1 Quote
Jongh Posted February 18, 2016 Author Posted February 18, 2016 Ahm, here's the item model json file: https://gist.github.com/hjongh/adacaebe399660ab5cda ItemRenderRegister class with registerItemRenderer method: https://gist.github.com/hjongh/de9397cd6cfb22d8e8ec CientProxy class where the registerItemRenderer method is called: https://gist.github.com/hjongh/dc53107eb6f5b6ad0d8f Quote
Jongh Posted February 18, 2016 Author Posted February 18, 2016 Here is my main mod class: https://gist.github.com/hjongh/1442b2a83f814314648e Path to the json file is src/main/resources/assets/newstart/models/item. All the java files are in src/main/java/com/jongh/newstart. And about the ModelLoader that you mentioned, even if it solves the problem, currently my main concern is understanding why my current way doesn't work, because I was just following through a basic tutorial and it should be working. Thanks for the help so far. Quote
Jongh Posted February 18, 2016 Author Posted February 18, 2016 Here is the complete file hierarchy, sorry for not including: Items registered in these two classes : ModItems class: https://gist.github.com/hjongh/fc1ed702b773cedb57d8 BasicItem class: https://gist.github.com/hjongh/54f10ed6bce4e79364e3 I did see that the error did not match up with my code which is part of the reason why I am utterly confused right now. Here's the complete error: https://gist.github.com/hjongh/d0444ce6e1f8ccd1f82e I think that maybe eclipse is not running the current files and maybe files that I previously loaded and deleted from my workspace. That imgur snippet shows what is loaded in my eclipse right now. Quote
Jongh Posted February 18, 2016 Author Posted February 18, 2016 Oh my god.... Thank you so much. Finally worked Thanks for your patience! Wondering if there are any resources with updated ways of doing things, like with ModelLoader as an example? Quote
Recommended Posts
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.