Posted April 29, 20187 yr 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 May 1, 20187 yr by bignose956
April 29, 20187 yr Author 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 April 29, 20187 yr 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.