This is a relatively simple 3D cube. Use WASD to rotate it around the X and Y axes and Q and E to rotate it along the Z axis. There were comments explaining the code, but Scratch 3.0 messed them up.
For people who want to know how to make 3D with perspective