A ferrocerium rod is the best substitute for a magnesium bar as a lot of them contain trace amounts of the element inside them. Alternatively, a lighter will do the job just fine but is prone to not working in adverse climates.