I'd like to write a companion mod that punishes the player for carelessly building on the ore. I need some way to hook into when a building is killed specifically because of dangOreous.
I think by looking around you can do something like:
script.raise_event(defines.events.script_raised_destroy, {mod="dangoreous", entity=event.created_entity});
to emit a custom event that other mods can trap. Would you be willing to add something like this please?