Toggle Peaceful Mode

by Cerbrus

Allows you to toggle peaceful mode at will, on every surface (Space Age planets included), while keeping in-game achievements enabled.

Utilities
8 days ago
0.14 - 2.1
19.3K
Enemies

Changelog

Version: 0.5.2
Date: 2026-09-04
  Locale:
    - The shortcut tooltip now explains that in multiplayer only admins can use it unless the
      "Only admins can toggle peaceful mode" map setting is disabled.
Version: 0.5.1
Date: 2026-09-04
  Changes:
    - Removed leftover debug logging code.
    - The README is no longer included in the mod zip; the mod portal page has the up-to-date text.
Version: 0.5.0
Date: 2026-09-04
  Gui:
    - The top-left button is replaced by a toggle in the shortcut bar (next to the blueprint tools).
      Its highlighted state shows the current mode for every player.
    - Added an unbound hotkey (Settings → Controls → Mods) that does the same as the button.
    - Peaceful mode can also be flipped from Mod Settings → Map; the setting always mirrors the state.
  Changes:
    - In multiplayer only admins can toggle by default. Map setting "Only admins can toggle peaceful mode"
      opens it up to everyone.
    - All messages are localised.
Version: 0.4.0
Date: 2026-09-04
  Compatibility:
    - Updated for Factorio 2.1.
  Bugfixes:
    - The peaceful state is now remembered and applied to surfaces created later, so Space Age planets
      and space platforms visited after toggling get the right setting without a second click (#12).
    - The toggle button now updates for every player in multiplayer, not only the one who clicked (#9).
  Changes:
    - Toggling announces the new state and who toggled it in chat.
  Info:
    - Demolishers on Vulcanus are never killed by the toggle; unlike biters they do not respawn. They follow
      the setting live anyway, except that an attack already in progress is finished.
Version: 0.3.2
Date: 2024-10-21
  Compatibility:
    - Updated for Factorio 2.0. Untested with Space Age planets.
Version: 0.3.1
Date: 2021-03-31
  Bugfixes:
    - Fixed "Gui element with name tpm-button already present" when adding the mod to an existing save (#7).
Version: 0.3.0
Date: 2021-03-30
  Gui:
    - Moved the toggle button to the mod-gui button flow (thanks Higgs1).
  Optimizations:
    - Removed a redundant force lookup when resetting biters.
Version: 0.2.2
Date: 2020-12-21
  Compatibility:
    - Added support for modded biter factions whose force name starts with "biter_faction_".
Version: 0.2.1
Date: 2020-11-27
  Compatibility:
    - Updated for Factorio 1.1.
Version: 0.2.0
Date: 2020-10-08
  Compatibility:
    - Updated for Factorio 1.0.
Version: 0.1.5
Date: 2020-01-28
  Info:
    - Added a mod thumbnail.
Version: 0.1.4
Date: 2020-01-28
  Compatibility:
    - Updated for Factorio 0.18 (thanks Joery).
Version: 0.1.3
Date: 2019-03-08
  Compatibility:
    - Updated for Factorio 0.17 (thanks jonfairbanks).
Version: 0.1.2
Date: 2018-01-07
  Compatibility:
    - Updated for Factorio 0.16.
Version: 0.1.1
Date: 2017-05-02
  Compatibility:
    - Updated for Factorio 0.15.
Version: 0.1.0
Date: 2017-01-07
  Major Features:
    - Initial release: toggle peaceful mode on all surfaces with a button, without disabling achievements.