Advertisement
Guest User

Untitled

a guest
Jan 14th, 2021
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. /c local surface = game.player.surface
  2. for c in surface.get_chunks() do
  3. for key, entity in pairs(surface.find_entities_filtered({area={{c.x * 32, c.y * 32}, {c.x * 32 + 32, c.y * 32 + 32}}, name= "rock-big"})) do
  4. entity.destroy()
  5. end
  6. end
  7.  
  8. for c in surface.get_chunks() do
  9. for key, entity in pairs(surface.find_entities_filtered({area={{c.x * 32, c.y * 32}, {c.x * 32 + 32, c.y * 32 + 32}}, name= "rock-huge"})) do
  10. entity.destroy()
  11. end
  12. end
  13.  
  14. for c in surface.get_chunks() do
  15. for key, entity in pairs(surface.find_entities_filtered({area={{c.x * 32, c.y * 32}, {c.x * 32 + 32, c.y * 32 + 32}}, name= "sand-rock-big"})) do
  16. entity.destroy()
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement