Page 1 of 1

Limiting modules to certain entities?

Posted: Tue Aug 16, 2016 7:41 pm
by aubergine18
i've added some new modules, and currently they can be added to any entity that accepts modules.

There's a `limit` property of module prototypes that can limit to certain recipes - which at least opens the possibility for me to prevent my modules being used in assembly machines, but is there a way to prevent them from being used on other machines?

Re: Limiting modules to certain entities?

Posted: Tue Aug 16, 2016 8:10 pm
by Ranakastrasz
Well, I am pretty sure all machines use recipes, so blocking smelting recipes should disable furnaces. Beacons somehow disallow Productivity modules, so look at that.

Pretty sure everything is either a beacon or a assembler of some kind.

IF that isn't enough, clarify the issue, give specific use case.

Cartmen's Complete overhaul, (or at least an older version of it) had specilized assemblers with specilized modules for each type, so looking at that might help if you can find it. He might have taken it down.

Re: Limiting modules to certain entities?

Posted: Tue Aug 16, 2016 8:22 pm
by aubergine18

Re: Limiting modules to certain entities?

Posted: Tue Aug 16, 2016 9:35 pm
by Ranakastrasz
Ah. Right.

Well, its outdated, but does the job so far as I can tell. Admittedly, how he did it is way beyond me.

Worked when I played it way back when tho.

Re: Limiting modules to certain entities?

Posted: Wed Aug 17, 2016 5:15 am
by aubergine18
Thanks, will take a look and report back.