Merge two items or substitute an item with another

Place to get help with not working mods / modding interface.
User avatar
DiegoPro77
Fast Inserter
Fast Inserter
Posts: 172
Joined: Tue Feb 20, 2018 1:40 pm
Contact:

Merge two items or substitute an item with another

Post by DiegoPro77 »

Hi guys. While trying to add compatibilities between some mods I came across a repeating problem: two items that are similar (or even the same, as an equipment) and have similar uses but are two different prototypes, therefore two different items.

Let's say I have an item called "mod1-sand" and another called "mod2-sand".
They have their respective crafting trees and uses: how can merge them together?
(Like deciding to delete the 1st item and use the other one in my mods recipes without needing to create huge "if mods... then" in the prototype files or in data.lua)

Thank you in advice. :D
Aka Playmaker. My mods: https://mods.factorio.com/user/77playmaker -|- My Discord Server: https://discord.gg/6NGYQdX
"One day you'll live this word behind, so live a life you will remember."
Expanding your game experience since 2018.
Post Reply

Return to “Modding help”