I'm working on a mod that has several variations of switchable glass (when the glass has a redstone signal its appearance changes).
The first variation is to change from glass to stone when redstone is applied. Its mostly working but the glass casts a shadow. I tested skeletons under the glass still burn, and when I switch it on they stop burning (after a few seconds, normal behavior for mobs entering shade).
This is my first attempt at a mod, so the code is not clean yet so any and all tips will be helpful.
UPDATE: I was able to override the function isBlockSolidOnSide to always return true since my block should be considered solid on all sides. This allows isOpaqueCube and renderAsNormalBlock to be set to false so that light will pass through them like a normal glass block.