mickael9 / cut-and-paste

Quickly cut or copy an area and paste it where you want (single-use blueprints). External circuit connections are restored when possible.
MIT License
3 stars 2 forks source link
factorio factorio-mod

This mod provides tools for cut and paste operation within Factorio.

Usage is similar to blueprints, except the tools are single-use (the blueprint will be converted back to a tool upon placing or when putting it back in inventory)

Demo

Features

Cut tool

The Cut tool allows you to select an area to be moved elsewhere.

Make a selection just like you would with a blueprint and then place the result where you want. The selection will be ordered for deconstruction and the pasted items will appear as ghost entities (just like blueprints).

By default, the Cut tool will try to maintain circuit connections with items outside the selected area if the destination isn't too far from the source. You can disable this in the mod setting (Esc, Options, Mods, Per player).

Items in containers (chests contents, turret ammo, etc.) will be moved to the destination as well. This can be disabled in the mod settings.

Tiles (such as concrete) can be included by using the Alternative selection mode (usually by holding Shift when selecting).

You can disable tile deconstruction in the settings. In that case, only cut entities will be deconstructed while tiles will simply be copied.

Like normal blueprints, you can normally only paste the selection if there are no conflicting entities at the destination. Shift-clicking overrides this behavior but works differently than vanilla blueprints:

By default, conflicting entities at the destination of a different type will be deconstructed before placing the new ones. This is different than vanilla blueprint pasting where force placing will simply not build over conflicting entities.

This behavior can be changed using the "Replace mode" setting:

Copy tool

The Copy tool is similar to the Cut tool except it doesn't deconstruct the source entities or reconnect circuit wires with items outside the selection area. The selection remains in hand after being placed, allowing more copies to be made.

By default, items in containers are not copied (except for modules). This can be changed in the mod settings.

Conflicting entities are handled in the same way as the Cut tool and according to the mod settings.

The selection is normally cleared as soon as it leaves the player's hand but you can disable this behavior in the settings so that the copied selection can be used like regular blueprints.

This is mainly useful if you want to duplicate something many times while also replacing any conflicting entities at the destination (which isn't possible with normal blueprints).

Note that once a copy blueprint leaves the hand, it won't be attached to the source entities anymore and conflicting entities will always be deconstructed (unless "Replace mode" was set to "Never").

Hotkeys

Changelog

0.1.5

0.1.4

0.1.3