Jump to content

Recommended Posts

Posted

I've been struggling with getting the assets to work for a 3 days now. Ive followed multiple tutorials and I'm still getting this error:

https://gist.github.com/DutchyD/37ce75d193c6aa5931b9340bf50359f9

 

As you will be able to see in the source code, which I will add at the end, I do have the file in the correct position, but it's refusing to find it.

 

Here is also a picture of my setup in Eclipse: https://gyazo.com/470852af57f8d1f25ac9fd99ecae4aa5

 

Source code:

https://github.com/DutchyD/test/tree/master/src/main/java/io/github/dutchy/estalia

Posted

Ok, first of all, I am curious where you got all this over engineered stuff from.

All this enum, reflection crap, it's not needed...

 

Why are you doing this? Your unlocalized name should include your ModID, don't explicitly remove it...

 

The issue is that you never register a model for your Item, you must call

ModelLoader.setCustomModelResourceLocation

to set the model for an Item in preInit from your ClientProxy.

 

The enum stuff is just something I put together after the tutorials failed me and the substring stuff was a test that I forgot to remove. Applied the ModelLoader to the item and it still returns that it cannot find es:models/item/godsword.json. Updated the sourcecode on the github, if you're still willing to help ^^

Posted

Updated the code and Im still getting the same error, it doesnt seem to identify my .lang file either as the item's name is still the same. Updated the sourcecode aswell

Posted

Your variant is now "#inventory", it should be "inventory".

Also, you are only creating and registering your item on the client now, which means your mod will not work on a server.

 

Updated. Still receiving that it can't find es:models/item/godsword.json as an error.

Posted

And you are 100% sure it's still the same error from the start? Are you also 100% sure that your eclipse is setup right so it actually builds your assets correctly?

 

Ive tried it with eclipse and intellij using forge 1.9 and 1.10 and this is the error I get everytime

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.