Code: Select all
function breakFactorio()
local surface = game.create_surface("test", {width = 10, height = 10})
surface.find_non_colliding_position("wooden-chest", {0,0}, 0, 1, true)
log("DONE")
end
Code: Select all
function breakFactorio()
local surface = game.create_surface("test", {width = 10, height = 10})
surface.find_non_colliding_position("wooden-chest", {0,0}, 0, 1, true)
log("DONE")
end
Code: Select all
surface.request_to_generate_chunks({0,0}, 1)
surface.force_generate_chunk_requests()