Jump to content

[1.8] ResourceLocation Help [SOLVED]


JoelGodOfWar

Recommended Posts

If i add an inventory.png into the resources area of my mod, can i use it instead of this? If so how?

private static ResourceLocation inventoryResourceLocation = new ResourceLocation("textures/gui/container/inventory.png");

 

This way i could give the player an option of using the ones from their texture pack, or the default ones.

Link to comment
Share on other sites

ResourceLocation points at location. You and/or anyonne else can put there anything they want. If they replace it - it will be replaced.

"minecraft:" + location points at minecraft pack, "modid:" + location would point at some mod's assets.

 

What is your question, because i don't see a problem. :c

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

A user of my mod was having an issue with the icons of potions, their resource pack did not have all the icons. So i wanted to use the default icons. So i've changed the code to be.

 

private static ResourceLocation inventoryResourceLocation = new ResourceLocation("minecraft:textures/gui/container/inventory.png");

 

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.