Posted September 1, 201510 yr I can't get it to load my icon, I have Googled everything but just can't get it to work. Here's my code: public static final ResourceLocation icon = new ResourceLocation("cc", "gui/inventory.png".substring(1)); This is the path I am trying to find: \resources\assets\cc\gui\inventory.png
September 1, 201510 yr You would use this, I believe: new ResourceLocation(Main.ID + ":" + "textures/gui/texture.png"); Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]
September 2, 201510 yr On 9/1/2015 at 3:47 AM, EverythingGames said: You would use this, I believe: new ResourceLocation(Main.ID + ":" + "textures/gui/texture.png"); This will look for assets\cc\textures\gui\texture.png , which he doesn't want. @OP, your problem is that you are calling String#substring(1) to "gui/textures.png ", which results in "ui/textures.png" . Remove the String#substring(1) to fix it. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
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.