scarpet icon indicating copy to clipboard operation
scarpet copied to clipboard

Add compatibility between block-breaking apps

Open Ghoulboy78 opened this issue 3 years ago • 0 comments

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.

Ghoulboy78 avatar Feb 23 '22 08:02 Ghoulboy78