Jump to content

ResourceLocation not working, getting purple & black texture


Recommended Posts

I have an image file in src\main\resources\assets\forgehax and im creating a ResourceLocation as

private ResourceLocation waifu = new ResourceLocation("forgehax","image.png");

and when i use it the code I do

drawTexturedModalRect(topX, topY, 100, 100);


but in the game i get the purple and black texture which means the texture is missing


I've confirmed that "forgehax" is the correct modid and that the image extension is lowercase and ive read this post and I still have no idea why this doesnt work


What am I doing wrong?

Edited by Babbaj
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.

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.