Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nWidart/32332c2c2330feff5f029cc7ff3e4fb5 to your computer and use it in GitHub Desktop.
Save nWidart/32332c2c2330feff5f029cc7ff3e4fb5 to your computer and use it in GitHub Desktop.
Factorio Command: Remove all trees in 5000 tile radius
/c
pos = game.player.position
area = {{pos.x - 5000, pos.y - 5000}, {pos.x + 5000, pos.y + 5000}}
for _, entity in pairs(game.player.surface.find_entities_filtered{area = area, type = "tree"}) do
entity.die()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment