Hi. Cool mod.
Found a problem, every item is removed if you change a tile to water - but not your new "small-minable-rock". It is still left out in the water.
Especially obvious in combo with Water Maze mod:
https://forums.factorio.com/viewtopic.php?f=94&t=21568
Edit:
Now I have to do this after Water-Maze creation:
for x = x1 - k, x2 + k do
for y = y1 - k, y2 + k do
if surface.get_tile(x, y).name == "water" or surface.get_tile(x, y).name == "deepwater" then
area = {{x - 1, y - 1}, {x + 1, y + 1}}
for _, entity in ipairs(surface.find_entities_filtered{
area = area, name = "small-minable-rock"}) do
entity.destroy()
end
end
end
end
Edit2: Similar to this you could remove mountains near player start (so you wont get stuck):
local function player_created(event)
local player = game.players[event.player_index]
local pos = player.position
local area = {{pos.x - 16, pos.y - 16}, {pos.x + 16, pos.y + 16}}
for _, entityNames in ipairs({"mountain", "small-minable-rock"}) do
for _, entity in ipairs(player.surface.find_entities_filtered{
area = area, name = entityNames}) do
entity.destroy()
end
end