Posted August 3, 201312 yr Hello. 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- 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?
August 3, 201312 yr 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.
August 3, 201312 yr considering bookshelves shouldn't be in massive quantity you should probably use a TE since it'll make rendering easier and will only use 1 block id how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
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.