Jump to content

Recommended Posts

Posted

i have a multi texture file and for some reason it only works if it is in the mc jar. in the older versions of forge i had no problem but since the new update i am having lots of problems. and i carnt find a way to fix this, the pic is saying missing (i just kept chaning the coords and it said missing) anyone know how to fix this? the file is 256 by 256.

 

EDIT: i forgot to say that i am using mc forge version 4.0.0.204 incase this helps

Posted

If your mod pakage is in Minecraft.common, you can create a folder called gfx into common package and drop here your terrain.png and your item.png (or other names)

 

Example: you have a block YBlock

 

To call your graphics from your mod, use :

 

MinecraftForgeClient.preloadTexture("/gfx/terrain.png");

 

 

to load the textures and in the block file:

 

	@SideOnly(Side.CLIENT)
    public String getTextureFile()
    {
            return "/gfx/terrain.png";
    }

 

It's only a example. You can change the names or the path of your graphics folder if you update the load and call methods

 

Sorry. I don't speak english.

Posted

Thanks for you help, i will try this once i get back to my dev pc, i wish that there was more tutorials on stuff like this... as how am i ment to know that they changed it.

Read the Changelog?

So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Posted

i never saw this in the changelog...

Well, they still work in minecraft.jar. And like it was described.

So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Posted

it dossent work, this is why i hate the new forge updates, why change somethign if it works?

 

Nothing would have worked if they didnt update forge since Minecraft's code changed for 1.3 :P

Anyways I was going to post my code here but I found a tutorial on the forge wiki which would be of more use.

Wuppy's Tutorial on how to add custom textures. Should help ya solve all ya problems :)

 

http://wuppy29.blogspot.nl/2012/08/modding-custom-textures-part-1.html

 

 

If you guys dont get it.. then well ya.. try harder...

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.