[Solved] Immunizing crafting machines against beacon buffs

Place to get help with not working mods / modding interface.
User avatar
Impatient
Filter Inserter
Filter Inserter
Posts: 883
Joined: Sun Mar 20, 2016 2:51 am
Contact:

[Solved] Immunizing crafting machines against beacon buffs

Post by Impatient »

Hi,

is there a way to immunize a crafting machine against receiving buffs from beacons? In other words: I don't want a crafting machine (eg an electric furnace) to receive buffs from nearby beacons.

Thanks!
Last edited by Impatient on Thu Feb 01, 2018 4:10 pm, edited 1 time in total.
User avatar
Impatient
Filter Inserter
Filter Inserter
Posts: 883
Joined: Sun Mar 20, 2016 2:51 am
Contact:

Re: Immunizing crafting machines against beacon buffs

Post by Impatient »

In the prototype definition for the electric furnace, I found the property "allowed_effects".

Code: Select all

    allowed_effects = {"consumption", "speed", "productivity", "pollution"},
It is also documented in the modding API:
https://wiki.factorio.com/Prototype/Cra ... ed_effects
https://wiki.factorio.com/Types/AllowedEffects

But still ... does this property affect buffs from modules in the machine, buffs from beacons or both?

Thanks!
Bilka
Factorio Staff
Factorio Staff
Posts: 3314
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Immunizing crafting machines against beacon buffs

Post by Bilka »

According to viewtopic.php?p=339361#p339361 setting allowed_effects to nil should prevent the machine from getting affected by beacons
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
Impatient
Filter Inserter
Filter Inserter
Posts: 883
Joined: Sun Mar 20, 2016 2:51 am
Contact:

Re: Immunizing crafting machines against beacon buffs

Post by Impatient »

Thank you. Question answered.

The information, that "allowed_effects" affects module slots and beacon buffs and that setting it to nil stops both would be a nice addition for this API documentation page i guess:
https://wiki.factorio.com/Types/AllowedEffects
Post Reply

Return to “Modding help”