Rigging Problem

Does anyone know how to make a rig that can turn and spin?

The example is what Use @Boxy Did to the Minecraft Steve rig in this forum: Alan Becker Style

Ive tried studying. the code but I can’t do anything with it