Can someone help me reproduce this code using the blocks?

If you still want just blocks, see