Other mods compatibility:
Sorry about the code formatting - Markdown is not my friend.
-
Add an optional dependency for Production Scrap 2 in your info.json file:
"dependencies": [ "base >= 0.17.0", "? ProductionScrap2 >= 0.17.0" ] -
Add the following to your data-updates.lua:
if (mods["ProductionScrap2"]) then
scrap2.lib.addScrap("mymod-recipe-1", "scrapType", scrapAmount)
scrap2.lib.addScrap("mymod-recipe-2", "scrapType", scrapAmount)
(etc.....)
end -
If your mod adds a new type of furnace, then do:
if (mods["ProductionScrap2"]) then
scrap2.lib.addFurnaceResult("mymod-furnace-1", 2)
end
New Scrap types:
-
Logistic Scrap
Used in the recycling process -
Ammo Scrap
Not used in recycling, but in waste water treatment process to create explosives, iron scrap, and steel scrap -
Military Intel Scrap
Created as loot from destroying spawners and worms
Not used in recycling, but in waste water treatment process to create military science packs
Note: Regular military scrap doesn't produce military science packs
Full List of Scrap Types
- "iron-plate-scrap"
- "copper-plate-scrap"
- "steel-plate-scrap"
- "belt-scrap"
- "inserter-scrap"
- "machine-scrap"
- "circuit-scrap"
- "military-scrap"
- "engine-scrap"
- "electric-scrap"
- "battery-scrap"
- "module-scrap"
- "logistic-scrap"
- "ammo-scrap"
- "military-intel-scrap" (produced only as loot from spawners and worms)
- "wood"
- "stone"
- "solid-fuel"