C-3PO finds himself adhered to a crane that utilizes magnetic force.
Magnetic objects, known as magnets, generated magnetic fields, enabling them to pull in metallic items. A specific technology leveraging magnets for this purpose was the magnetizer.