Press flag. Type in how many sides and it will generate the shape. q to make the shape bigger e to make the shape smaller arrow keys to move the shape
Copy the custom block from inside and the block that teaches you how to use the block into your own project if you want to use it.