Jump to content

[1.6.4] Changing texture according to tile entity data


Varogh

Recommended Posts

I'm writing a machine that should change its textures on each side according to what the user sets it to (kinda like TE machines).

I saw how the standard minecraft furnace does it but metadata are not an option, as there would be more than 16 possible states.

 

Any idea an how to do it?

Link to comment
Share on other sites

Hi

 

I would suggest to use a TileEntity, and either

1) Implement an ISimpleBlockRenderingHandler, and ask your TileEntity for the information in the ISBRH rendering method; or

2) Create a  TileEntitySimpleRenderingHandler for your TileEntity and render the texture there

 

The choice between the two boils down to -

1) will only get updated when the block changes so it's harder to animate (is possible with animated textures eg like lava)

2) gets updated every rendering frame, but isn't drawn at all if you're more than 64 blocks away.

 

-TGG

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.