on_entity_died event should include dropped loot data somewhere in there

Post Reply
sawbladex
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sun Jul 29, 2018 8:43 pm
Contact:

on_entity_died event should include dropped loot data somewhere in there

Post by sawbladex »

In the Mod API, on_entity_died doesn't include a value for the loot dropped by the dead entity.

I think it should, because dropping loot is kinda an interesting thing.

Granted, it isn't quite as interesting with the base game now that alien artifact/eggs don't drop as requirements for getting to space, but the functionality is interesting.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: on_entity_died event should include dropped loot data somewhere in there

Post by Optera »

+1

Would be good to also include inventory drops. Currently that's only something player avatars do, but it would be fun to see chests or warehouses spilling their contents when destroyed only to have that instantly marked for deconstruction and bots swarming in to clean up the mess. :lol:

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: on_entity_died event should include dropped loot data somewhere in there

Post by eradicator »

Optera wrote:
Sat Oct 06, 2018 8:29 am
but it would be fun to see chests or warehouses spilling their contents when destroyed only to have that instantly marked for deconstruction and bots swarming in to clean up the mess. :lol:
You have an oddly sadistic idea of "fun".

+1 for the general idea though.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: on_entity_died event should include dropped loot data somewhere in there

Post by Optera »

eradicator wrote:
Sat Oct 06, 2018 8:51 am
You have an oddly sadistic idea of "fun".

+1 for the general idea though.
Didn't forcing players to learn combinators and binary with LTN give that away already? :twisted:

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: on_entity_died event should include dropped loot data somewhere in there

Post by Rseding91 »

Ok. I've added "loot" to the entity died event for 0.17.
If you want to get ahold of me I'm almost always on Discord.

User avatar
H8UL
Fast Inserter
Fast Inserter
Posts: 114
Joined: Mon May 15, 2017 4:02 pm
Contact:

Re: on_entity_died event should include dropped loot data somewhere in there

Post by H8UL »

So, it should be possible for a mod to mark loot for deconstruction on drop?

Which has some interesting prospects for multiplayer, but also automated biter farms...
Shameless mod plugging: Ribbon Maze

Post Reply

Return to “Implemented mod requests”