How does one build a magnetic bearing?

I'm playing with 3D printing and am trying to start out simple.

I'm missing "something"...