Why?
I would like to be able to mirror an area or invert the destination axis. Could also be added as a separate function.This would allow me to mirror a surface on a axis. (if you have another performant way to do it I would like to know)
Result now:
Command to copy chunk from bottom right to top left without mirroring it: (Works)Code: Select all
/c game.player.surface.clone_area{source_area={{0,0},{32,32}}, destination_area={{-32,-32},{0,0}}, clone_tiles=true, clone_entities=true, clone_decoratives=true, clear_destination_entities=true, clear_destination_decoratives=true, expand_map=true}
Code: Select all
/c game.player.surface.clone_area{source_area={{0,0},{32,32}}, destination_area={{0,0},{-32,-32}}, clone_tiles=true, clone_entities=true, clone_decoratives=true, clear_destination_entities=true, clear_destination_decoratives=true, expand_map=true}
Error:
Source area and destination area are not the same size