SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedAdmin & protection

Eye for an Eye fixed

by gearsgod · for Factorio

Biters that damage your structures take a portion of that damage in return – turning every breach into a self‑defeating attack. (Modular testing ongoin) Fully compatible with Factorio 2.0 and 2.1 (and Space Age). Now with a modular codebase, dynamic polling for instant setting feedback, clean scientific‑notation display, and optional debug logging. Every enemy kill reduces evolution; nest destruction evolution gain is toggleable. All settings are runtime‑global and take effect immediately.

787Downloads
4 mo agoLast updated
2.0Latest game version
Factorio Mod PortalSource

About Eye for an Eye fixed

From Factorio Mod Portal

Biters that damage your structures take a portion of that damage in return – turning every breach into a self‑defeating attack. (Modular testing ongoin) Fully compatible with Factorio 2.0 and 2.1 (and Space Age). Now with a modular codebase, dynamic polling for instant setting feedback, clean scientific‑notation display, and optional debug logging. Every enemy kill reduces evolution; nest destruction evolution gain is toggleable. All settings are runtime‑global and take effect immediately.

Eye for an Eye

A huge thank you to both myself and everyone in the DabriaTeam for making my dream come true. This was the one mod I personally loved and made the game just more playable for me.

Fully updated for Factorio 2.0 and 2.1 (and Space Age).


Overview

When an enemy damages your buildings, they get a taste of their own medicine. Eye for an Eye reflects a configurable percentage of damage back to any attacker that hits a player‑owned structure. Every enemy kill also reduces the global evolution factor, giving you a tangible reward for successful defence.

> "An eye for an eye makes the whole world blind" – but in Factorio, it makes the biters think twice.


Features

  • Reflection Damage – Any enemy that damages your buildings receives a configurable percentage of that damage back (default: 20%). Fully adjustable from 0% to 10,000%.
  • Evolution Reduction – Every enemy kill reduces the global evolution factor by a configurable amount. Turn the tide against the biters!
  • Nest Destruction Control – Optionally prevent spawner destruction from adding evolution (enabled by default).
  • Fully Configurable – All settings are runtime‑global and take effect immediately. No restart required.
  • Reliable Notifications – See a chat message whenever the evolution reduction setting is changed – works for both the Map tab and Player tab, even when on_runtime_mod_setting_changed would not fire.
  • Chat Spam Control – Disable chat messages for mass killing sessions.
  • Performance‑Friendly – Dynamic polling starts fast for testing, then gracefully slows to once per hour when no changes are detected. The polling counter resets correctly on changes, ensuring you always get instant feedback when you tweak the setting.
  • Debug Logging – Optional verbose logging to factorio‑current.log for troubleshooting.

How It Works

  1. Reflection: When an enemy attacks a player‑owned building, the mod calculates a percentage of the damage dealt and applies it back to the attacker as electric damage.
  2. Evolution Reduction: Each time an enemy entity dies, the mod subtracts the configured amount from the global evolution factor.
  3. Nest Destruction: By default, destroying spawners adds zero evolution – you can disable this in the settings.

Settings

All settings are available in Settings → Mod Settings → Runtime Global:

| Setting | Default | Description | |---------|---------|-------------| | Reflection Damage Multiplier | 0.2 | Damage reflected back (0 = none, 0.2 = 20%, 1 = 100%, 100 = 10000%) | | Evolution Reduction per Kill | 0.005 | Evolution subtracted per enemy kill (0.01 = 1 percentage point) | | Prevent Evolution from Nest Destruction | true | When enabled, destroying spawners adds NO evolution | | Show Evolution Changes in Chat | false | Print evolution changes to chat (can be spammy) | | Enable Debug Logging | false | Log detailed messages to factorio‑current.log |


Commands

| Command | Description | |---------|-------------| | /evolution-down | Reduce evolution by the configured amount (testing) | | /evolution-get | Display current evolution with full precision | | /eye-for-an-eye-set-reduction <value> | Admin override – set the reduction directly (value between 0 and 0.5) | | /eye-for-an-eye-check-setting | Show the current reduction value |


Why Use This Mod?

  • Punishes breaches – Biters that break through your walls will destroy themselves in the process.
  • Rewards defence – Killing enemies actively lowers evolution, making future waves easier.
  • Customisable – Tune the reflection strength and evolution reduction to your liking.
  • Lightweight – No tick‑based overhead for core logic; the mod only reacts when damage or death occurs, and the setting poller uses exponential backoff with a correctly reset counter for instant responsiveness.

Compatibility

  • Factorio 2.0.77+ – Fully compatible.
  • Factorio 2.1.0+ – Fully compatible (includes support for new events like on_entity_destroyed and on_player_color_changed).
  • Space Age – Fully compatible and verified on both versions.
  • Multiplayer – Works in multiplayer; settings are global.
  • Other mods – Uses standard API events (on_entity_died and on_entity_damaged). Conflicts are rare.

Credits

  • Original idea: abregado
  • Previous fixes: gearsgod
  • Factorio 2.0 / 2.1 rebuild and updates: Dabria

Support

Found a bug or have a suggestion? Report it on the Factorio Mod Portal with your factorio‑current.log file attached.


Version: 2.10.19 Last Updated: 2026-07-28 Factorio Versions: 2.0.77+ and 2.1.0+

FAQ

Read the full description on Factorio Mod Portal →

Highlights

From source data

Game versions

Built for Factorio 2.0.

Footprint

Rated a light load on a server.

Last update

Its author last shipped an update 4 mo ago.

Eye for an Eye fixed on Nxeon

From our catalogue
One-click install
Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
Server side
Required on the server
Server load
light
Smallest plan we suggest
Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
2.10.20, released 2026-07-29

Recent builds

BuildReleasedGame versionsLoaders
2.10.202026-07-292.0n/a
2.10.192026-07-292.0n/a
2.10.182026-07-292.0n/a
2.10.172026-07-282.1n/a
2.10.162026-07-282.0n/a
2.10.152026-07-262.1n/a

Run Eye for an Eye fixed on a Factorio server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Factorio Mod Portal as “Mods”

Admin & protection

Permissions, moderation, anti-cheat and land protection for the people running the server.

Runs on your server

From source side support

Factorio Mod Portal lists Eye for an Eye fixed as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Compatibility

Game
Factorio
Runs on
Serverrequired on the server
Game versions
2.0

Verified at the source

  • ✓Factorio Mod PortalOfficial listing, checked 2026-10-16Open ↗
  • ✓Authorgearsgod, as published on Factorio Mod Portal
  • ✓LicenseNot published by the sourceFree

Eye for an Eye fixed, answered

Generated from the mod’s own source data.

Do my players need to install Eye for an Eye fixed?

Factorio Mod Portal lists Eye for an Eye fixed as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. Eye for an Eye fixed is free to download from Factorio Mod Portal.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Eye for an Eye fixed on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Eye for an Eye fixed in one click.