With this mod https://mods.factorio.com/mod/ShowUnconnected I get that if I use
This pseudocode works as expected:
Code: Select all
on_player_mined_entity
if entity.neighbours then
game.print ('player entity neighbours ')
else
game.print ('no player entity neighbours ')
end
But this one can't see the neighbour of underground belt:
Code: Select all
on_robot_mined_entity
if entity.neighbours then
game.print ('robot entity neighbours ')
else
game.print ('no robot entity neighbours ')
end