Currently displayed is a demo, you can change the rotation and the focal length, the x y and z values are for another demo, which you can find inside. To make your own 3D projects, remix, then go to the bottom-right corner where you see the render function. Add whatever 3D functions you like, and this will be called every frame (this is VERY performant so it hits the Scratch fps limit cap of 30). To the left of it is how to draw a dot (this might become obsolete if I add a function to do that)
For the 3D projection equation, and some of the inspiration, I watched a matbatwings video. He is a really good Minecraft YouTuber that does computational redstone. For the rotation formula I went to the Wikipedia page on the subject, but I translated the matrix multiplication into Scratch.