Restrict building to resource

Place to get help with not working mods / modding interface.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Restrict building to resource

Post by bobingabout »

Similar to how you can only place an oil drill on a cruide oil patch, is there any way you can restrict the placement of a non-drill entity, such as a furnace or assembling machine to a resource patch?

if so, explanation/example please?
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
jorgenRe
Filter Inserter
Filter Inserter
Posts: 535
Joined: Wed Apr 09, 2014 3:32 pm
Contact:

Re: Restrict building to resource

Post by jorgenRe »

There is this dirty way of using the count entities filtered function where type = resource that can be run every time an entity.type does not equal drill :)!
Though the count entities filtered may not be that dirty so you might wanna first trye it out in a well used world first ;)!
Logo
Noticed the told change in FFF #111 so il continue to use my signature ^_^
Thanks for listening to our suggestions, devs :D!
I would jump of joy if we could specify which tiles spawned in a surfaces
orzelek
Smart Inserter
Smart Inserter
Posts: 3928
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Restrict building to resource

Post by orzelek »

Only way I see currently would be to use entity build events and check in there if requirements are met - aka there is a proper ore under the entity.
Post Reply

Return to “Modding help”