Jump to content

Textures and stuff


N1xx1

Recommended Posts

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.

Link to comment
Share on other sites

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".

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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.