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.

Featured Replies

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

  • Author

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

  • Author

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

  • Author

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.

  • Author

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

  • Author

Cannot reproduce:

 

ORIeghk.png

 

Yeah, I've just tried it in Intellij again and it works now. Thanks a lot for your help ^^ I really appreciate it.

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.