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, 10 months ago
1.1
33.6K
Environment

b Incompatible with autobuild

2 years 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, 10 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