How to make a block disappear after a certain period of time
I did something very similar to this, using a fill clock, scoreboard commands, and wither skulls.
Two scoreboard objectives were added, walkonair
and lifetime
. The first objective controls the ability to walk on air, and the second objective controls the "lifetime" of the blocks below the player.
The setup: