Code: Select all
for k,v in pairs(game.entity_prototypes["biter-spawner"].result_units[1].spawn_points) do game.player.print(k..' '..v) end
spawn_points should be an array with numeric keys and values that are themselves tables, per http://lua-api.factorio.com/0.13.0/LuaE ... sult_units
however, it looks like what's happened is that spawn_points actually contains what should be in spawn_points[1] and the other points aren't accessible.