I see the future as digital treasure hunts, but there will always be those assholes that run bots and take coins in mere seconds. So maybe not.
There's still Casascius though.
Well Casascius coins is a possible solution, but it's not the same though. The thrill to find a rare and limited edition coin is always the best experience. In most countries these Casascius are not allowed,
and it's not in general circulation. The idea that someone traded on a daily basis with the coins you found, makes it just so much more...how should I put it? ....Romantic.

In any way, I will still miss these finds, when we go fully digital.

If we ever go fully digital, I don't think there will be a shortage of physical coins anytime soon after that.
Mints make a sh*t ton of coins that would put classical-era pirates to utter shame. Numbers range in the trillions of coins out there. A quick search will do.
I think treasure hunts are exciting since the rarity of such old coins are exciting in itself. I'm not sure how many coins are there in circulation during the 1700's, but I'm sure modern coins outnumber them by several orders of magnitude, hence the rarity. It should make hunting for modern coins simpler since one does not simply tuck away 11 billion coins under a pile of dirt.