Need a little help here please.

That green field wire goes to the voltage regulator. The OEM regulator had a wire in the top ( Blue? ) and the green out the bottom. I don't know how the lack of this would prevent spark. The blue is the hot in run wire. It goes to the regulator and should go to electronic ignition module also. Magic box? I don't know those.
Well the 'magic box ' is the ignition module 1519005025619854584897.jpg