Jump to content

Error Rendering Items in Forge


Jongh

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.