diff --git a/zircon-rocks.lua b/zircon-rocks.lua new file mode 100644 index 0000000..f40f9bc --- /dev/null +++ b/zircon-rocks.lua @@ -0,0 +1,27 @@ +local util = require("data-util"); + +-- Add zircon to rocks +local min = 9 +local max = 11 +if mods["alien-biomes"] then + min = 5 + max = 7 +end +for _, e in pairs(data.raw["simple-entity"]) do + if (e.subgroup == "grass" or e.subgroup == "wrecks") and e.name:match("rock%-") then + local adjusted_max = e.name:match("huge") and max * 2 or max + local adjusted_min = e.name:match("huge") and min * 2 or min + util.add_minable_result("simple-entity", e.name, {name="zircon", amount_min=adjusted_min, amount_max=adjusted_max}) + end +end + +-- Add zircon to poppable rock recipes + +-- K2 +util.add_ingredient("rock-big", "zircon", 15) +util.add_ingredient("rock-huge", "zircon", 30) + +-- Dectorio +util.add_ingredient("dect-base-rock-big", "zircon", 15) +util.add_ingredient("dect-base-sand-rock-big", "zircon", 15) +util.add_ingredient("dect-base-rock-huge", "zircon", 30)