I found this command to place normal landfill assuming the position is on water and it works:
Code: Select all
some_entity.surface.set_tiles({{name = "landfill", position = {-59,70}}}, true)
Code: Select all
some_entity.surface.create_entity{name="entity-ghost", position={-15,51}, inner_name="straight-rail", force=some_entity.force, direction=defines.direction.west}