New TriggerEffectItem for Creating Pollution

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
wagyekk
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat May 17, 2025 7:08 pm
Contact:

New TriggerEffectItem for Creating Pollution

Post by wagyekk »

Hello,

I would like to request a new TriggerEffect - CreatePollutionEffectItem, a TriggerEffectItem with the "create-pollution" type.

Reasoning:
I'm working on a mod that allows item destruction by placing items in liquid tiles, similar to how lava works on Vulcanus (https://mods.factorio.com/mod/dispose-in-liquids). One feature I wanted to add - and which others have already started asking for - is generating pollution from item destruction.

From what I've observed so far, the most convenient way to introduce pollution would be through a tile's trigger effect. Currently, I use default_destroyed_dropped_item_trigger to create a visual effect (CreateParticleTriggerEffectItem), and my idea was to have a new TriggerEffect that would generate pollution.

Since it's safe to assume that item destruction will occur on a large scale, creating events for each item and subscribing to them would be wasteful and would significantly hurt performance. That's why I believe a TriggerEffect would be the appropriate solution here.
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 156
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Re: New TriggerEffectItem for Creating Pollution

Post by PennyJim »

Affecting pollution via triggers just seems to make sense to me +1

Though I'd type it as "pollute" to keep the possibility of it absorbing pollution instead
Post Reply

Return to “Modding interface requests”