Help me code for a geometric tower


I want to make an algorithm and make a tower like this picture, but I don’t have a clue


I did it with the picture above, but it doesn’t feel similar

Hmm…