A way to prevent entities recieving beacon effects

Things that already exist in the current mod API
Post Reply
CmdrKeen
Long Handed Inserter
Long Handed Inserter
Posts: 98
Joined: Tue Sep 29, 2015 9:03 pm
Contact:

A way to prevent entities recieving beacon effects

Post by CmdrKeen »

I'm trying to make a mod with custom mining drills that lack module slots and cannot receive beacon effects. Unfortunately there's no way (that I know of) to prevent effects from being received at the moment. I'd like to have a method added to accomplish this.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: A way to prevent entities recieving beacon effects

Post by bobingabout »

Placing certain modules in an entity is controlled by the "allowed_effects" tag (I think that's what it's called), specifying no effects would prevent any module from being fitted.
I'm fairly sure this also prevents the effect being received from a transmitter.

However, I think mining drills might be a bit of an exception right now. Productivity is usually only allowed on recipes that are on the module's filter, yet can be placed in a mining drill even though no recipes are involved.

It would require more research, but I'm fairly sure you will require some... "Modding interface" being added to the game for this case.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

CmdrKeen
Long Handed Inserter
Long Handed Inserter
Posts: 98
Joined: Tue Sep 29, 2015 9:03 pm
Contact:

Re: A way to prevent entities recieving beacon effects

Post by CmdrKeen »

Placing certain modules in an entity is controlled by the "allowed_effects" tag (I think that's what it's called), specifying no effects would prevent any module from being fitted.
I'm fairly sure this also prevents the effect being received from a transmitter.

However, I think mining drills might be a bit of an exception right now. Productivity is usually only allowed on recipes that are on the module's filter, yet can be placed in a mining drill even though no recipes are involved.
I tried changing allowed_effects, but that only affects the module slots. The beacon effects still applied.

I'm also realizing that a method of disabling the mining productivity research for certain mining drill prototypes would also be needed for my mod. (at least without disabling the productivity research entirely)

User avatar
Distelzombie
Filter Inserter
Filter Inserter
Posts: 336
Joined: Tue May 02, 2017 4:27 pm
Contact:

Re: A way to prevent entities recieving beacon effects

Post by Distelzombie »

Inserters or nuclear reactors do not gain from beacons. Maybe you'll find something useful in their code.
Complete 2-Lane system as a Blueprint-Book! The perfect OCD reactor? Testing chained science lab efficiency Please use real prefixes and proper rounding!

Post Reply

Return to “Already exists”