buffer inventory for script_raised_destroy
Posted: Sat Feb 18, 2023 2:53 pm
I'd like to see a mechanism similar to on_player_mined_entity.buffer, but for script_raised_destroy.
Currently it's only possible to add additional items when an entity is mined by player or robot using the buffer inventory. However, when an entity is destroyed using scripts, the only possibility is to spill additional items on the ground and hope that this is compatible with the script destroying the entity.
Ideally a mod can add additional items into the buffer inventory when its entity was destroyed by another mod. The mod destroying that entity retrieves the additional items from the buffer and can do what is appropriate for it. For example when using destruction planners in the built-in editor those items would just be ignored. But the Nanobots mod would add them to the player inventory automatically.
See viewtopic.php?p=581750#p581750 for why I need it.
Currently it's only possible to add additional items when an entity is mined by player or robot using the buffer inventory. However, when an entity is destroyed using scripts, the only possibility is to spill additional items on the ground and hope that this is compatible with the script destroying the entity.
Ideally a mod can add additional items into the buffer inventory when its entity was destroyed by another mod. The mod destroying that entity retrieves the additional items from the buffer and can do what is appropriate for it. For example when using destruction planners in the built-in editor those items would just be ignored. But the Nanobots mod would add them to the player inventory automatically.
See viewtopic.php?p=581750#p581750 for why I need it.