You literally just said the exact same thing.
HOW do you get through the blocks?...
jump against them. if there is collision with player, there is chance of 1:10, 1:100,......,1:100000000000 that the block destroys itself. and in all other cases, it destroys the player, so you have to try again, until you get lucky and block lets you pass