It works only in survival.
To replicate this get stack of redstone and start placing it and destroying it(best choice is dirt it breaks faster and you can see the cracks of breaking) but just one click place one click destroy. If you click second time to destroy on the block without redstone the breaking will reset
Thank you for your report!
We're actually already tracking this issue in MC-69865, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.