Limit craftable items temporarily

Place to get help with not working mods / modding interface.
User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 237
Joined: Tue Feb 06, 2024 5:18 am
Contact:

Limit craftable items temporarily

Post by hgschmie »

I am playing around with a mod that moves a player temporarily to a different surface in god mode. In that situation, I want the player only to be able to craft a few specific items, not everything that they have researched.

I was looking into ways to temporarily restrict which items can be crafted by a player. There is "disable/enable hand crafting" but that applies to the whole force, not just one player. I could also live with "disable all crafting temporarily".

Can this be done with the current API? I could not figure this out (and codex could not either, so I guess it is not doable).

If no, would a modding request have a chance to be looked at?
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 625
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Limit craftable items temporarily

Post by Silari »

Wouldn't it be fairly simple to do that by putting them onto a different force? Recipes are controlled by the force, so you can just make a new one that only has access to those ones you want.

That does assume it doesn't matter if what they do on that new surface belongs to a different force though.
Post Reply

Return to “Modding help”