Guest User

Suggestion

a guest
Feb 24th, 2026
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.15 KB | None | 0 0
  1.     -- changing titanium plate from crushed titanium to 3:1 in foundry as in BzTitanium original balance (15:5 in furnace)
  2.     -- titanium plate from enriched titanium in foundry now will have 2:1 also as per original BzTitanium balance (10:5 in furnace)
  3.     -- https://mods.factorio.com/mod/bztitanium/faq
  4.  
  5.     fdsl_recipe.modify_ingredient("titanium-in-foundry", "crushed-titanium-ore", { amount = 3 })
  6.     data.raw.recipe["enriched-titanium-plate"].category = "rit-smelting"
  7.     data.raw.recipe["titanium-plate"].category = "rit-smelting"
  8.  
  9.     -- add missing titanium plate from crushed titanium to furnaces
  10.     local titanium_plate = table.deepcopy(data.raw.recipe["titanium-plate"])
  11.     titanium_plate.name = "crushed-titanium-plate"
  12.     titanium_plate.category = "rit-smelting"
  13.     titanium_plate.icons =
  14.     {
  15.         { icon = "__bztitanium__/graphics/icons/titanium-plate.png",                     icon_size = 64, icon_mipmaps = 3, },
  16.         { icon = "__crushing-industry__/graphics/icons/compat/crushed-titanium-ore.png", icon_size = 64, icon_mipmaps = 3, scale = 0.25, shift = { -8, -8 } },
  17.     }
  18.     data.extend({ titanium_plate })
  19.     fdsl_recipe.replace_ingredient("crushed-titanium-plate", "titanium-ore",
  20.         { type = "item", name = "crushed-titanium-ore", amount = 15 })
  21.     fdsl_recipe.modify_result("crushed-titanium-plate", "titanium-plate", { amount = 5, extra_count_fraction = 0 })
  22.     fdsl_tec.add_unlock("titanium-processing", "crushed-titanium-plate")
  23.  
  24.     -- add missing titanium plate from enriched titanium to foundry
  25.     local titanium_in_foundry = table.deepcopy(data.raw.recipe["titanium-in-foundry"])
  26.     titanium_in_foundry.name = "enriched-titanium-in-foundry"
  27.     titanium_in_foundry.icons =
  28.     {
  29.         { icon = "__bztitanium__/graphics/icons/titanium-plate.png", icon_size = 64,                icon_mipmaps = 3, },
  30.         { icon = "__base__/graphics/icons/fluid/steam.png",          tint = { r = .1, g = .1, b = .5, a = .5 }, scale = 0.25, shift = { -8, -8 } },
  31.     }
  32.     data.extend({ titanium_in_foundry })
  33.     fdsl_recipe.replace_ingredient("enriched-titanium-in-foundry", "crushed-titanium-ore", { type = "item", name = "enriched-titanium", amount = 2 })
  34.     fdsl_tec.add_unlock("foundry", "enriched-titanium-in-foundry")
  35.  
  36.     -- moving default titanium plate recipes out of advanced furnace to force vacuum titanium recipe unlocked at foundry,
  37.     -- cos kr adv furnace is basically foundry upgrade, but u can bypass vacuum recipe because it is also a furnace which is kinda dumb.
  38.     -- Personally I would rather remove all smelting recipes from adv furnace that has foundry analogues with molten metal to emphasize space age expirience.
  39.     for _, type in pairs(data.raw) do
  40.         for _, entity in pairs(type) do
  41.             if entity and entity.crafting_categories and entity.name ~= "kr-advanced-furnace" then
  42.                 for _, category in pairs(entity.crafting_categories) do
  43.                     if category == "smelting" then
  44.                         table.insert(entity.crafting_categories, "rit-smelting")
  45.                         break
  46.                     end
  47.                 end
  48.             end
  49.         end
  50.     end
Advertisement
Add Comment
Please, Sign In to add comment