Some identifier linking mined entities with mined items

Things that already exist in the current mod API
Post Reply
sparr
Smart Inserter
Smart Inserter
Posts: 1329
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Some identifier linking mined entities with mined items

Post by sparr »

When on_player_mined_item fires, there seems to be no information available about the entity that was mined because it is gone. I would like for there to be some identifier in on_player_mined_entity and on_player_mined_item that allows them to be matched up, so that I can save some info about the entity while it still exists, to be referred to shortly afterward.

Bilka
Factorio Staff
Factorio Staff
Posts: 3140
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Some identifier linking mined entities with mined items

Post by Bilka »

on_player_mined_entity already provides you information on both the entity and the mined item(s). Moving to already exists.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

sparr
Smart Inserter
Smart Inserter
Posts: 1329
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: Some identifier linking mined entities with mined items

Post by sparr »

Sorry for not being specific enough in my request. I'll try again.

Post Reply

Return to “Already exists”