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

Basically I just can't load a texture.

 

This won't work:

 

bindTextureByName("/n1xx1/stuff/landpaint.png");

 

This will:

 

bindTextureByName("/terrain.png");

 

 

The file dimension are 96x96 and it's a png with alpha value. Also, it's not saying "missing texture" it just don't show up just like it's an empty texture.

 

But, if I put my texture in the / directory it just work fine.

 

Oh, and I'm using a zipped mod.

Do you have the png file in the right directory.

 

This is what I have in the code and the file structure.

%MCP%/src/common/x/y/z/textures.png

 

public static String BLOCK_PNG = "/x/y/z/textures.png";

 

  • Author

Do you have the png file in the right directory.

 

This is what I have in the code and the file structure.

%MCP%/src/common/x/y/z/textures.png

 

public static String BLOCK_PNG = "/x/y/z/textures.png";

 

I already said I'm sure I have the texture. Actually it's not even saying "missing texture".

If your running it before compiling your mod and running it in a client as in you are running it in eclipse, you need to put the png in your minecraft.jar IN MCP with the specified path from your code (minecraft.jar/n1xx1/stuff/landpaint.png) After recompiling/reobf and trying to run it from the client/server make sure you have it in the mod file the same as it would be in the .jar

  • Author

If your running it before compiling your mod and running it in a client as in you are running it in eclipse, you need to put the png in your minecraft.jar IN MCP with the specified path from your code (minecraft.jar/n1xx1/stuff/landpaint.png) After recompiling/reobf and trying to run it from the client/server make sure you have it in the mod file the same as it would be in the .jar

 

1) I'm not using eclipse. I use NetBeans.

2) I'm using my own builder that automatically make a zip file.

3) I put that zip file in the mods folder.

 

Anyway, I'll figure out alone.

  • Author

Put this in your block.java file

    public String getTextureFile()
    {
            return "/YourMod/SpriteSheet.png";
    }

Also you need to set up a proxy first.

 

Please, read the topic before say any random stuff.

 

I'm talking about custom renders, not changing block texture.

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.