Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /c
- local surface = game.player.surface
- for c in surface.get_chunks() do
- for key, entity in pairs( surface.find_entities_filtered( { area = { { c.x * 32, c.y * 32 }, { c.x * 32 + 32, c.y * 32 + 32 } } } ) ) do
- if entity.name == "deadlock-loader-5" then
- local X = entity.position.x
- local Y = entity.position.y
- entity.destroy()
- surface.create_entity( { name = "rapid-transport-belt-mk2-loader", position = { X, Y }, force = game.player.force } )
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement