register_on_entity_inventory_changed()

Things that we aren't going to implement
Post Reply
billbo99
Fast Inserter
Fast Inserter
Posts: 131
Joined: Fri Nov 02, 2018 9:19 am
Contact:

register_on_entity_inventory_changed()

Post by billbo99 »

In 0.18.31 .. LuaBootstrap::register_on_entity_destroyed() .. was added.

I was hoping that a DEV would add .. register_on_entity_inventory_changed() .. as a means for modders that want to keep an eye on the inventory of a specific entity, instead of keep polling on Tick updates looking for changes.

My personal desire is to be able to register a logistics chest to raise an event when its inventory has been updated. But this could also apply to players, vehicles and cargo-wagons.

With the assocaiated event on_entity_inventory_changed() returning
  • The entity that made the change, so you could tell if it was a bot, script or player.
  • What was added or removed as a list of stacks. With positive stack counts for items added, and negative stack counts for items removed.

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

Re: register_on_entity_inventory_changed()

Post by Rseding91 »

Sorry but this isn't going to happen.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Won't implement”