How does a lightsaber work?

You're gonna need a crystal.