Making non-fullCube blocks opaque #1767
Unanswered
sprucerooth
asked this question in
Mod Dev Support
Replies: 2 comments 5 replies
-
If I recall correctly, you can override a method in your block, like |
Beta Was this translation helpful? Give feedback.
1 reply
-
I am far from an expert on this, but have you got something like the following for your block?
Most of the vanilla blocks that are not full cubes change this property. e.g. the vanilla slab does:
i.e. it is false when the double slab occupies the full block, true for half slabs. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been scratching my head and debugging this for a few days now.
I have a custom block with a less than full cuboid outline shape (a vertical slab). How can I make it be opaque?
As soon as I override AbstractBlock.getOutlineShape to return anything else than a VoxelShapes.fullCube, the block lets light pass through it.
Beta Was this translation helpful? Give feedback.
All reactions