factorio - add and remove ores from console« Wróć do listy pytań
need command |
▲ ▼ | ADD some small ore field near player
/c local surface = game.player.surface; for y=-4,4 do for x=-4,4 do surface.create_entity({name="uranium-ore", amount=5000, position={game.player.position.x+x, game.player.position.y+y}}) end end REMOVE uranium-ore near player
/c for _, entity in ipairs(game.player.surface.find_entities_filtered{ area={{game.player.position.x-32, game.player.position.y-32}, {game.player.position.x+32, game.player.position.y+32}}, name="uranium-ore"}) do entity.destroy() end |
Please log in to post questions/answers: