Safe Waterfill


Create water like landfill, without destroying things on land. Unlike most waterfill mods, this will not destroy any land-based entities, like structures, resources, cliffs, trees, or yourself. Only land with nothing on it will be replaced. Offers a choice of 6 different types of water.

Content
1 year, 4 months ago
1.1
30.3K
Environment

b Incompatible with autobuild

1 year, 7 months ago

The autobuild mod will revive ghosts in the vicinity of the player triggering the script_raised_set_tiles event when building safe waterfill ghosts. The corresponding event can look like this:

{
name = 82,
surface_index = 1,
tick = 362960,
tiles = {
{
name = "safefill-deep",
position = {
x = -160,
y = -25
}
}
}
}

This then leaves broken tiles behind because the code that checks for a collision and then replaces the tile with actual water is never run.

1 year, 4 months ago

I made a change for this to work better, though still not perfect, since the event doesn't provide information on the previous tile type, so tiles that can't be made into water end up with a generic dirt tile.

New response