#Leaves

1 messages · Page 1 of 1 (latest)

rose pendant
#

Hello, I was wondering how would go about recreated the texture permutation that makes leaves switch to an opaque texture when surrounded by solid blocks. I’ve been messing around with it some last night and I can’t figure it out

spare lily
#

To achieve this, you need to use custom block states.
​First, define a boolean block state (e.g., custom:opaque_leaves: [true, false]). Next, create permutations within your block definition that check for this state. Inside the permutation, you can override the material_instances to assign a specific custom texture or render method for that state.
​Finally, you can use a simple script to detect specific conditions and toggle the state automatically.