Jump to content

Should I use TileEntity to display texture?


Recommended Posts



I have custom bookshelf in my mod and it is a container with 9 possible states and 4 directions. Each state defines amount of items inside bookshelf (0-8) and block changes texture for each state.


Because I have 32 possible combinations, I'm using 3 block IDs to store all states in metadata:

[*]Empty bookshelf (4 directions)

[*]Half-full bookshelf (4 directions, 1-4 items)

[*]Full bookshelf (4 directions, 5-8 items)


The question is:

Isn't it better to use one block ID with direction in metadata and call TileEntity to decide which state the bookshelf have to render appropriate texture? How much more processing will it take?

Link to comment
Share on other sites

All tile entities require more resources then just plain blocks, however a tile entity that does not tick ie: just storing the state in the tile entity and having the block determine what to display based on that is much better then one that ticks ie: a furnace.

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.

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.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.