Make mine module event-based

Closes #16864