Skip to content

Instantly share code, notes, and snippets.

View BraveCaperCat2's full-sized avatar
💭
Stop following me for no reason

BraveCaperCat2

💭
Stop following me for no reason
View GitHub Profile
@BraveCaperCat2
BraveCaperCat2 / all_craftable_items_factorio.lua
Created February 3, 2026 21:59
This code snippet gives you a list of all items that have unlockable recipes.
local list = {}
local recipes_by_tech = {}
for _,tech in pairs(data.raw["technology"]) do
if tech.enabled then
for _,effect in pairs(tech.effects) do
if effect.type == "unlock-recipe" then
table.insert(recipes_by_tech, effect.recipe, effect.recipe)
end