Simple test:
Code: Select all
/c game.player.print(serpent.block(game.player.surface.can_place_entity({name='stone', position = game.player.surface.map_gen_settings.shift})))
/c game.player.teleport(game.player.surface.map_gen_settings.shift)
/c game.player.print(serpent.block(game.player.surface.can_place_entity({name='stone', position = game.player.surface.map_gen_settings.shift})))