How do I make a mod that changes the way mining or digging works?

Edited

Try Tynker's Mods Editor (Project > Create Project > Minecraft > Create Mod).

https://www.tynker.com/dashboard/student/#/minecraft/mod/bedrock

Want to clear out a big area, fast? Try using Tynkerbot to build shapes … with air!

You can also explore cool Construction-themed modding tutorials, for free! Project > Create Project > Minecraft > Construction