Make a fuel only work in one type of generator

Place to get help with not working mods / modding interface.
Post Reply
xBlizzDevious
Fast Inserter
Fast Inserter
Posts: 108
Joined: Mon Feb 02, 2015 10:15 pm
Contact:

Make a fuel only work in one type of generator

Post by xBlizzDevious »

Basically, I'm wondering if this is possible as I want to make a machine generate power with only one type of fuel, and I don't want other machines to be able to use that fuel. Crafting something that made power wouldn't work so it has to be in a generator.

So, is it possible? If so; how?

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Make a fuel only work in one type of generator

Post by FreeER »

not as far as I'm aware. Theoretically you could make a second item without the fuel value and have players craft it, then swap it out using Lua with the one that has a fuel value later. However, since non-fuel items won't go in a fuel slot players would have to use a chest and an inserter and the Lua code would have to search for a nearby container to swap them out (and possibly the inserter so that it doesn't get stuck holding a non-fuel item). Of course the issue with that is if you change more than one out at a time the players could then pickup the items with a fuel value from the chest and use it like any other fuel...

Post Reply

Return to “Modding help”