scarpet
scarpet copied to clipboard
Add compatibility between block-breaking apps
Is your feature request related to a problem? Please describe. I would like the blocks that I break with hammer.sc to be picked up with auto_pickup.sc and same with blocks broken by veinminer.sc
Describe the solution you'd like
Basically I would like all those apps to trigger and listen for an event called block_broken
or something, which has the exact same parameters as __on_player_breaks_block
. The reason being that if apps trigger __on_player_breaks_block
, other apps may trigger involuntarily, so block_broken
event circumvents that by making sure that apps which listen for it know the implications of it being fired and treat it specially.
Describe alternatives you've considered
My first solution was to just trigger __on_player_breaks_block
, until I realised that it was a bad idea.
Additional context I may implement this myself, but it will take a little while, hence why I'm making this issue.