This is an extended version of my recursion example - you can use the scripts if you want! This is all made in one sprite, with two simple scripts! If you want it to just print that pattern onto the screen without the spiral effect, right-click on 'Draw Square of (Size) Size', go to 'edit' and tick 'Run Without Screen Refresh'
Thanks to me for my Recursion Example and to @griffpatch_tutor for his More Blocks Tutorial project. More Blocks Tutorial: https://scratch.mit.edu/projects/68924432/ Recursion Example: https://scratch.mit.edu/projects/486673507/