Foundation can be implemented as a pseudo-entity that is 4x4 (for scale with machines) that, when placed, also sets the tiles underneath itself to be stone bricks. When deconstructed, it uses the hidden_tile property of the tiles to reconstruct what was underneath them.
[x] Foundation construction
[x] Deconstruction
[x] If the player attempts to deconstruct it but is standing on it and the hidden_tile is a water-tile, abort deconstruction
Foundation can be implemented as a pseudo-entity that is 4x4 (for scale with machines) that, when placed, also sets the tiles underneath itself to be stone bricks. When deconstructed, it uses the
hidden_tile
property of the tiles to reconstruct what was underneath them.