https://lua-api.factorio.com/latest/eve ... ected_area
The information about area without surface is not full.on_player_selected_area
Called after a player selects an area with a selection-tool item.
Contains
player_index :: uint: The player doing the selection.
area :: BoundingBox: The area selected.
item :: string: The item used to select the area.
entities :: array of LuaEntity: The entities selected.
tiles :: array of LuaTile: The tiles selected.