luccaPossamai / optical

MIT License
6 stars 3 forks source link

Better handeling of non full blocks #32

Open MR-Spagetty opened 1 week ago

MR-Spagetty commented 1 week ago

As it stands if a beam is being into a block like moss carpet from the side for example it does not go across even though it clearly should be able to

luccaPossamai commented 6 days ago

Thanks for your suggestion, that kind of idea common developers can do by requesting a pull here in git. Blocks which beams can or cannot go across can be managed by 'PENETRABLE' tag. You can do this without even setup the mod's environment. I said that because this is not the project I'm working on right now, this way I receive a little a help and listen to the community.

MR-Spagetty commented 5 days ago

i think you misunderstood what i am talking about, i am not talking about a binary can or cannot pass through the entire block i am talking about passing through spaces on blocks where it would be physically possible and not through other spots for example a hollow log block from any mod that adds it will typically be open at 2 opposing ends and the rest of the faces will be closed i am suggesting that the beam would be able to pass through these open faces and not the others or another example would be something like a slab or vertical slab the beam would be able to pass until it physically hits the slab rather than either fully passing through no matter what or not even entering the block space

luccaPossamai commented 4 days ago

I did understood what you're talking. There's so many ways to implement this penetrable feature, the way I did it was by verifying the block's transparency. First problem about this is just limited types of blocks that can be penetrable because there's blocks that depending on the face the light hits it can or cannot pass through as you said. But I really want to be customizable outside the hardcode environment