Code: Select all
game.onevent(defines.events.onchunkgenerated, function(event)
local x = event.area.lefttop.x/32
local y = event.area.lefttop.y/32
game.getplayer().print((x).." "..(y))
end
134217725, 134217720
134217726, 134217720
134217727, 134217720
0, 134217720
(This only seems to happen when im going to negative directions, and im not sure if the numbers of the first chunks that are negative work)
Then I noticed that any world generation is generated in negative cordinates. (from my mod)