Iirc to do it the way pickaxe by Sputt does it, you need to have the player be in survival mode, but when they start mining a block - switch them to adventure mode and have them be in adventure mode until they stop mining. This will make it so there's no mining progress being made, but at the...