Search found 4 matches

by wagyekk
Fri Jul 03, 2026 10:07 pm
Forum: Resolved Problems and Bugs
Topic: [2.1.9] CreatePollutionTriggerEffectItem fails to create pollution when use_entity_from_trigger=true and no entity
Replies: 1
Views: 329

[2.1.9] CreatePollutionTriggerEffectItem fails to create pollution when use_entity_from_trigger=true and no entity

CreatePollutionTriggerEffectItem silently fails to create pollution when use_entity_from_trigger is true (default) and the trigger context does not provide a valid trigger entity.

Assign the following trigger to TilePrototype.default_destroyed_dropped_item_trigger :


{
type = "direct",
action ...
by wagyekk
Fri Jul 03, 2026 9:32 pm
Forum: Implemented mod requests
Topic: New TriggerEffectItem for Creating Pollution
Replies: 5
Views: 776

Re: New TriggerEffectItem for Creating Pollution

Indeed, I had to set entity explicitly as it will be used in the Pollution statistics. This makes sense in context of my mod where it's always tiles that trigger pollution creation.

So to sum up here are my observations:
dying_trigger_effect on trees: use_entity_from_trigger = true works and ...
by wagyekk
Fri Jul 03, 2026 1:31 am
Forum: Implemented mod requests
Topic: New TriggerEffectItem for Creating Pollution
Replies: 5
Views: 776

Re: New TriggerEffectItem for Creating Pollution

I updated my mod to use the new create-pollution trigger effect when items are disposed of in liquid tiles.

One thing I noticed while testing is that I had to explicitly set:


{
type = "create-pollution",
amount = ...,
use_entity_from_trigger = false
}


With the default (use_entity_from_trigger ...
by wagyekk
Sat Jan 10, 2026 12:57 pm
Forum: Implemented mod requests
Topic: New TriggerEffectItem for Creating Pollution
Replies: 5
Views: 776

New TriggerEffectItem for Creating Pollution

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 ...

Go to advanced search