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

 

Reveal hidden contents

 

 

for

 

private static final ResourceLocation resourceloc2 = new ResourceLocation("");

 

in the quotes i've tried many file paths. The .png im trying to render is in:

src/minecraft/assets/objtutorial/textures/blocks/XXXXX.png

 

When I start up the client it gives the me the error:

2013-10-02 15:00:11 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_1000_TutBox.png

 

when attempt to place the block it gives me the error:

 

Reveal hidden contents

 

 

Im using Forge Build 1.6.4-9.11.0.883

 

You need to specify the location starting at /assets:

 

new ResourceLocation("/assets/objtutorial/textures/blocks/XXXXX.png");

 

Or starting at your Mod ID:

 

new ResourceLocation("objtutorial:textures/blocks/XXXXX.png");

 

As the first (and only the first) : is converted to a / when the resource is located.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author
  On 10/2/2013 at 7:26 PM, Draco18s said:

You need to specify the location starting at /assets:

 

new ResourceLocation("/assets/objtutorial/textures/blocks/XXXXX.png");

 

Or starting at your Mod ID:

 

new ResourceLocation("objtutorial:textures/blocks/XXXXX.png");

 

As the first (and only the first) : is converted to a / when the resource is located.

 

I tried the first and second method and I got the same errors. Is there anything else it could be. Perhaps with registering the texture?

You don't need to register them, that's for Icons.

 

Here's code I have that works:

 

ResourceLocation rl = new ResourceLocation("artifacts:textures/blocks/pedestal.png");
Minecraft.getMinecraft().renderEngine.bindTexture(rl);

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.