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

Technology Tree: logical OR operator

by Pithlit · for Factorio

Provides logical OR operation in the technology tree for other mods. An OR-node automatically unlocks as soon as one of the predecessor technologies is researched. An OR-node can be used as prerequisite for other technologies, so they become available for research, as soon as one of the prerequisite technologies is researched.

1.5KDownloads
13 mo agoLast updated
MITLicense
2.0Latest game version

About Technology Tree: logical OR operator

From Factorio Mod Portal

Provides logical OR operation in the technology tree for other mods. An OR-node automatically unlocks as soon as one of the predecessor technologies is researched. An OR-node can be used as prerequisite for other technologies, so they become available for research, as soon as one of the prerequisite technologies is researched.

This mod provides a function for other mods to add logical OR-nodes to the technology tree. Stand-alone this mod does nothing.

Example:


How to use from your mod:

local technology_or = require("__technology_or__.technology_or") local tech = technology_or.OR({"automation", "logistics"}) data.raw.technology["automobilism"].prerequisites = {tech.name}

This block of code adds an OR-node in the technology tree. As soon as automation or logistics is researched, the OR-node is also automatically unlocked. After that, automobilism can be researched.

Documentation:


To access the functions, provided by this mod, require the lib file and store it in a local variable:

local technology_or = require("__technology_or__.technology_or")

Now you can call the two functions, that are provided by this mod:

  • technology_or.OR(technologies, dont_extend)
  • technology_or.DEPEND_ON(technology_name, prerequisite_name, dont_modify_prerequisites, dont_extend)

The function *technology_or.OR**takes two arguments:

  • technologies: array[TechnologyID]
  • dont_extend: optional - bool, defaults to false

It will return a TechnologyPrototype, that automatically unlocks when any of the technologies in the technologies argument is researched. If dont_extend is true, data:extend has not yet been called with the new prototype. You may further modify the returned prototype and call data:extend by yourself.

The function technology_or.DEPEND_ON takes four arguments:

  • technology_name: TechnologyID
  • prerequisite_name: TechnologyID
  • dont_modify_prerequisites: optional - bool, defaults to false
  • dont_extend: optional - bool, defaults to false

It will return a TechnologyPrototype, that automatically unlocks when the technology prerequisite_name is researched. Additionally the returned prototype will be added to the prerequisites of the technology given by technology_name, if dont_modify_prerequisites is false. If dont_extend is true, data:extend has not yet been called with the new prototype. You may further modify the returned prototype and call data:extend by yourself.

Known issues:


  • In cases, where the names of the predecessor technologies end with a number, the localisation might fail. Any hint how to prevent this is welcome.
  • The localisation of OR-nodes that depend on other OR-nodes or technologies with a localised_name might fail.
  • You can not alter the name of a prototype after it is added to the game with data:extend. If you need to modify it, call the functions with dont_extend
  • The game cleans up the technology tree after the data stage, so that common dependencies of technologies and ther predecessors olny apply to the predecessor, and no longer to the dependent technology. This can cause issues with OR-nodes. If you need to set up an explicit dependency between two technologies, use the DEPEND_ON function.

Highlights

From source data

Game versions

Built for Factorio 2.0.

Footprint

Rated a light load on a server.

License

Published under MIT.

Technology Tree: logical OR operator 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
1.1.4, released 2025-10-24

Run Technology Tree: logical OR operator 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”

Gameplay & overhauls

New mechanics, content and overhauls that change how the game plays.

Runs on your server

From source side support

Factorio Mod Portal lists Technology Tree: logical OR operator 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-08Open ↗
  • ✓AuthorPithlit, as published on Factorio Mod Portal
  • ✓LicenseMITFree

Technology Tree: logical OR operator, answered

Generated from the mod’s own source data.

Do my players need to install Technology Tree: logical OR operator?

Factorio Mod Portal lists Technology Tree: logical OR operator as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. Technology Tree: logical OR operator is free to download from Factorio Mod Portal. Its license is MIT.

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 Technology Tree: logical OR operator on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Technology Tree: logical OR operator in one click.