Stencil

by Shemp

Drag-building when starting from a ghost that matches the cursor stack causes only matching ghosts to be built. Also supports mining buildings marked for deconstruction.

Utilities
5 days ago
2.1
39
Blueprints

Changelog

Version: 1.0.2
Date: 2026-11-30
  Bugfixes:
    - Fixed a nil-access error and crash when reading items_to_place_this.
Version: 1.0.1
Date: 2026-11-28
  Changes:
    - Releasing drag on the Stencil tool no longer plays the item's pick sound when it is restored to the cursor.
Version: 1.0.0
Date: 2026-11-17
  Features:
    - It is now possible to place vehicles once again.
  Changes:
    - The Stencil indicator displays next to the cursor while dragging with the tool.
    - The Stencil tool no longer shows the list of selected entities starting from Factorio 2.1.25.
    - Construction now calls script_raised_built again, and now uses surface.create_entity() to reliably transfer item data into entities using "item".
  Bugfixes:
    - Fixed underground belts and loaders not accounting for connection type when being placed.
    - Adjusted scale and offsets of the item render to be more accurate.
    - Render offsets now correct themselves when zooming.
    - It was not possible to upgrade a Normal-quality building to a higher quality version of itself, now it is.
    - Trying to build with an item that has no place_result will now place only the first building and abort using the tool. Unfortunately, the engine no longer considers the Build keybind as being held down in this case, so there's nothing I can do about it.
Version: 0.1.1
Date: 2026-10-30
  Bugfixes:
    - Prevented placing items that can have extra data attached to them, because this mod hasn't been written to handle them, and third-party mods may expect to receive the usual build events so they can transfer the data.
    - This includes vehicles. In a future update, I may implement transferring vehicle equipment grids + settings.
  Compatibility:
    - Added a mod-data denylist for both items and entities, to prevent Stencil construction triggering for specified modded buildings.
    - Construction now calls script_raised_revive instead of script_raised_built.
Version: 0.1.0
Date: 2026-10-29
  Major Features:
    - Initial release.