Jump to content

[1.7.0] Have no textures on a block except for the bottom?


Recommended Posts

Posted

Hi. The title pretty much says it. It this possible? If so, how would I do that? i know it is probably something to do with ISimpleBlockRenderingHandler, but that's all I know.

Posted

Hi

 

Just make a block which returns a blank texture for the five non-bottom faces

http://greyminecraftcoder.blogspot.com.au/2013/07/rendering-standard-blocks-cubes.html

 

If you want see the bottom texture from the top, just make your block extremely thin (max Y = minY) and return a top texture as well

 

Alternatively, you could use ISimpleBlockRenderingHandler like you suggested.

http://greyminecraftcoder.blogspot.com.au/2013/07/rendering-non-standard-blocks.html

 

-TGG

Posted

So, using icons I can do this?

@Override
    public IIcon getIcon(int side, int meta) {
        if (side == 0) return glyphs[meta];

        return null;
    }

 

Or will it work to return null for every side except for the bottom?

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.