Jump to content

Recommended Posts

Posted (edited)

I have a block whose texture is to be determined by the state of surrounding blocks. I want to be able to switch between different textures when the neighbor blocks change. My only problem is that I cannot find anyway to change the texture of the block at runtime. I only want to the texture to change for individual blocks. Is this possible?

Edited by bignose956
Posted (edited)
12 minutes ago, diesieben07 said:

You need to have a property in your block state that controls which model (and thereby texture) is used. Then you can override getActualState in your block to set this property based on surrounding blocks. The fence does this.

How will I tell forge which blockstate property controls the textures, and which texture to use depending on that property's value? 

Edited by bignose956

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.