With this adapter you can equip a MagLite 3D with 2x18650 Lithium batteries instead of 3xLR20.
You need to also change the bulb, as the voltage will be higher with up to 8.4V.
There are plenty of B13.5S LED bulbs available.
Optionally you can add an BMS and USB-C charger, see last picture for schematic.
BOM: