Heads up: I made this mod with a lot of help from AI. Claude wrote most of the code and text, and the icons are AI-generated. The lightning, sounds and thumbnail come from scripts Claude wrote, not license-constrained stock assets. I direct, playtest and tweak every update myself.
Personal Tesla Defense Equipment

Strap a tesla gun to your power armor! This personal defense equipment is an automatic combat weapon that zaps nearby biters, spitters and worms on its own. Its chain lightning arcs from enemy to enemy, so a single shot can clear a whole attack wave or soften up a nest. Pick your color from a rainbow of palettes. Works with or without Space Age.
Features
- 2×2 armor equipment that fires on its own, like personal laser defense
- Chain lightning that jumps between enemies and can fork
- Wild, arcing lightning with dead-end branches crackling off it. Bolts thrash, settle and twitch at an irregular pace and follow moving targets
- A rainbow of lightning colors: six palettes, from classic electric blue to plasma purple, toxic green, solar gold, crimson red and pure white
- Adjustable color depth: slide from pale, white-hot bolts to deep, saturated color
- Layered colors: bolts in several shades, in front and behind, so even a huge fight stays readable instead of blowing out to white
- Crackling discharge sound: every shot charges up and strikes with a roar, and every chain jump crackles at its target
- 20 tile range, firing once per second
- Uses 110 kJ per shot from your armor's power grid
- Quality or Performance visuals, your choice (see below)
- Space Age optional: same lightning with or without the DLC
Taste the rainbow
Under Settings → Mod settings → Startup:
Lightning colors sets the palette. Every bolt has a white-hot core with its own colored glow:
- Classic (default): white, ice and electric blue
- Plasma: violet, magenta and pink
- Toxic: green and lime
- Solar: gold and orange
- Crimson: red and orange-red
- Pure white: all intensity, no color
Beam saturation sets how deep the color goes, from 0 to 1:
- 0: pale glows with lots of white-hot bolts, a bright, crackling look
- 0.5 (default): right in the middle, rich color with plenty of white sparkle
- 1: deep, saturated glows where the color carries the bolts and only a few strands flash white
Colors and saturation only change the look, never the damage, and cost nothing in performance. Both are startup settings, so changing them needs a restart. In multiplayer, everyone uses the host's settings.
Quality or Performance
Choose how the lightning is drawn under Settings → Mod settings → Map → Lightning visuals. It only changes the look, never the damage, and you can switch anytime, even mid-fight.
- Quality (default): the full show, with branching, wildly arcing bolts.
- Performance: no branches, simpler paths and fewer redraws. It still arcs and crackles, at about half the script cost in a typical fight and a fifth at the peak.
Benchmark with 15 units equipped, fighting a populated biter base:
| Mode | Typical | Peak (everything chaining at once) |
|---|---|---|
| Quality | ~0.4–0.5 ms | ~1 ms |
| Performance | ~0.2 ms | ~0.2 ms |
If you're running a big base or stacking lots of units, Performance is the way to go. In multiplayer, the host's setting applies to everyone.
With Space Age
Built from a tesla gun and benefits from tesla weapon damage research.
- Unlocked by: Tesla weapons
- Crafted in: Electromagnetic plant
- Recipe: 1 Processing unit, 2 Low density structure, 4 Battery, 1 Superconductor, 1 Tesla gun
Without Space Age
Uses the laser ammo category, so laser weapon damage research makes it stronger.
- Unlocked by: Personal laser defense (or whichever tech unlocks it in your mod pack)
- Crafted in: Any assembling machine
- Recipe: 5 Processing unit, 5 Low density structure, 10 Battery, 1 Personal laser defense
Make your own lightning
The lightning sprites are generated by a small Python script, make_lightning.py, and it's free to use! Change the seed for a new batch of bolts, pick a palette, or tweak the colors, glow, thickness, forks and flicker to make your own style. The crackling sounds come from a second script, make_discharge.py, which builds them entirely from noise, with no recordings. Both are handy starting points for any mod that needs electric effects.
👉 Grab the scripts and read how the lightning works on GitHub!
Made with AI
AI was used heavily in the production of this mod. The code, documentation and this description were written with Claude (Anthropic's AI assistant). The lightning sprites, the sounds and the thumbnail are made by Python scripts rather than drawn or recorded; those scripts were also written with AI. The icons are AI-generated images. I direct the design, and every version is played, tested and tuned in-game by me before it's released.
Compatibility
- Requires WePlay: Beam Library, which is installed automatically
- Works in vanilla and Space Age
- Should play nicely with overhaul mods that move the personal laser defense research
Found a bug or have an idea? Leave a note on the discussion page!
Like this mod? Try WePlay: Personal Rocket Launcher Equipment! It's a 3×3 armor module that automatically fires rockets from your inventory at nearby enemies, and it doesn't use any power from your armor grid. It pairs perfectly with your Tesla defense! 💥
Check out all the WePlay mods here.