Jump to content

1.5 Basic Item/Block Textures


Abascus

Recommended Posts

in 1.5, we use func_94581_a for Item-textures and func_94332_a for Blocks.

 

Here's an example for an item:

 

        public void func_94581_a(IconRegister iconRegister)
        {
            iconIndex = iconRegister.func_94245_a("ModName:gs");
        }

 

"ModName:gs" -> gs is the texture file, Resources is the folder.

The whole path would look like this:

/mods/ModName/textures/items/gs.png

and for Blocks:

/mods/ModName/textures/blocks/gs.png

 

try searching for an answer, before asking for one ^^

here's the wiki-page: http://www.minecraftforge.net/wiki/Icons_and_Textures

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.