Jump to content

Non [a-z0-9/._-] character in path of location, but pointing to a png?


d_53ori

Recommended Posts

Whole error message here - Caused by: net.minecraft.ResourceLocationException: Non [a-z0-9/._-] character in path of location: mcpp:textures/models/armor/mcpp:example_layer_1.png

here is my gh repo where i host the mod source - https://github.com/orioncoy/MinecraftPlusPlus

I am lost as to how this error can occur on a png, am I missing something blatantly obvious? The game crashes whenever I go to my inventory, any help is appreciated and I'm sorry if I'm missing any key info.

Link to comment
Share on other sites

Solved it!

in my ModArmorMaterial class, under the getName method, I had this code per the tutorial I was watching:

@Override
public String getName() {
    return Mod.MODID + ":" + this.name;
}

If I remove

Mod.MODID + ":" +

from the return statement, it removes the colon from the texture path and everything works as intended.

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.



×
×
  • Create New...

Important Information

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