OK,
I ahave tried to stay out of this but too much wrong information is flying around
So to start with there is nothing in the light circuit in a JD L130 that prevents the loghts working other than the key switch or the fuse
NO SAFETY SWICHES IN THE CIRCUIT AT ALL
see Diagram below
From the battery to the solenoid to the voltage rectifier through the key switch then to ground via the light globes
So no lights = bad switch bad battery cables or bad fuse
To test the fuse, pull the plug off the back of the key switch and check for battery voltage on both the red wiren and the Yellow /white wire , both to Ground wire (black not shown in this diagram ) and to the battery negative post .
The electrical section of the JD technical manual ( which you can buy on line from JD ) is over 100 pages long & I have no intention of rewriting all in the post.
So do the above tests and get back with the results for further instruction.