desht / ModularRouters

A Forge Mod for item routers with pluggable modules
16 stars 20 forks source link

[Feature Request] Make Modular Router blocks opaque #209

Open CarlSmotricz opened 6 months ago

CarlSmotricz commented 6 months ago

Describe the feature

MR blocks are translucent to light, like e.g. Glass or Iron Bars. Light level inside an otherwise closed room drops from 15 to 11. I propose they should be fully opaque, like blocks of Cobblestone. Failing that, they should at least implement camouflage more thoroughly with regard to translucency. A MR camouflaged as a block of Cobblestone should transmit no light.

Reasons why it should be considered

MRs are useful in mob spawners but their transparency means that they need to be covered up if they're used as walls on what should be a dark, i.e. 0-light level interior.

Additional details

image

desht commented 5 months ago

This is unfortunately harder than it sounds, since routers are camouflageable. Since they can take on the appearance of any block, making them opaque messes up their appearance when camouflaged. And the noOcclusion block property can't be made to depend on the current state of the block entity (which stores the camouflage).

I'd like to do this if possible, but don't have a clean way of doing it right now.