Yep, most of my blocks are custom models, so I set isOpaqueCube and isNormalCube to false almost always. It looks like the Block#getRenderType already returns EnumBlockRenderType.MODEL, so setting it like that should not be necessary.
It might be related to the material you set for your block. You probably want a material that is "translucent". So I would suggest creating a new MaterialTranslucent() with whatever map color you want and also probably setNoPushMobility().
Hey everybody, I want to get rid of the shadows that are cast by my blocks. See the pic below. Any ideas on how to do this?
Are you using the code below in the classes for those blocks?
If that doesn't work, try setting either of the following two methods in your block classes as well:
Mapping and Modding rules | Global rules
Yep, most of my blocks are custom models, so I set isOpaqueCube and isNormalCube to false almost always. It looks like the Block#getRenderType already returns EnumBlockRenderType.MODEL, so setting it like that should not be necessary.
It might be related to the material you set for your block. You probably want a material that is "translucent". So I would suggest creating a new MaterialTranslucent() with whatever map color you want and also probably setNoPushMobility().
I'll look into doing that, thank you very much!
I figured it out! You simply need to override Block#getAmbientOcclusionLightValue and return 1F.