Closed MichaelVolk closed 8 months ago
Blocks which require a supporting material should also be covered by this PR since they have similar limitation. Snow Layers, Repeaters, Comparators, Dust, etc.
That's true for snow layers, repeaters and comparators. Redstone dust is already covered since its bottom side is not a full square. Sadly, I lack the programming experience for implementing repeaters, comparators and snow layers (are there more non full blocks needing a support block?).
I am pretty sure there's a helper method somewhere which checks if the material requires supporting blocks in a particular direction. Maybe that can be used here.
I didn't find any common/generic methods to indicate blocks that need support. So I just added an implementation with hard coded blocks. I also added a new option to the save menu to enable this "support blocks" behavior. It also adds a support block for gravity block columns that have some part of the column exposed.
The visible blocks implementation still has issues like where it would just leave out stuff like fully concealed redstone stuff like repeaters... But I don't know if it's worth it to worry about stuff like that (for now at least), I feel like this option would mostly be used for large scale aesthetic builds instead of redstone contraptions.
Thank you for implementing this!
fixes #772