Filter Mining Drills


Adds filter support to all mining drills, allowing you to choose which resource to mine when mining overlapping resource patches.

Tweaks
10 months ago
2.0
1.78K
Mining

FAQ

Source code

data-updates.lua

local blacklist = {
}

for _, prototype in pairs(data.raw["mining-drill"]) do
  if not blacklist[prototype.name] then
    if not prototype.filter_count then  -- Mods can specify filter_count and this mod won't override it
      prototype.filter_count = 5
    end
  end
end