Reacting to asteroid chunks being created

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
thesixthroc
Fast Inserter
Fast Inserter
Posts: 135
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Reacting to asteroid chunks being created

Post by thesixthroc »

It seems there is no way in the engine to react to asteroid chunks being created, as they are not entities. The purpose of this request is to be able to suppress the chunk drops of asteroids at runtime, that way I can spawn special asteroids that follow the same gun targeting rules but don't drop chunks.

created_effect is not available and on_trigger_created_entity can never be fired. Supporting the former may be the best option given that dying_trigger_effect has already been implemented for asteroid chunks.
thesixthroc
Fast Inserter
Fast Inserter
Posts: 135
Joined: Wed Apr 29, 2020 9:53 pm
Contact:

Re: Reacting to asteroid chunks being created

Post by thesixthroc »

I have implemented a workaround for the mod in question by deleting nearby chunks when the asteroid dies.
Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Re: Reacting to asteroid chunks being created

Post by Gweneph »

Why not modify the dying_trigger_effect to not spawn them in the first place? Do you need it to be dynamic as to if they spawn or not? You could replace the trigger with a script trigger then.
Post Reply

Return to “Modding interface requests”