Spidertron Weapon Switcher

Allows the Spidertron to fire any type of weapon by cycling through different loadouts with Control + Tab.

25 days ago
a month ago
Latest Version:
1.1.4 (25 days ago)
Factorio version:
1827 times

Spidertron Weapon Switcher

If you've been wanting the spidertron to fire more than just rockets, this is the mod for you! It now contains machine guns, shotguns, flamethrowers, cannons and rocket launchers.


  • Press Control + Tab (or \ ) whilst in a spidertron or whilst hovering over one with the mouse to rotate through 5 different weapon options
  • Ammo is saved between weapons, so you can rotate back to a weapon and its ammo will still be there
  • Machine gun, shotgun and flamethrower have all been given their own 'spidertron version' with increased range and damage compared to normal
  • Tank cannon and rocket launcher have the same stats as when fired from a tank and a spidertron respectively
  • Supports MK2 & MK3 spidertrons from Spidertron Extended


  • When you switch weapons, that spidertron's name will be lost, it will stop moving, and any remotes connected to it that are stored in an inventory more than 30 tiles from a player will become disconnected

Mod Compatibility

When a spidertron is switched, the entity is destroyed and replaced with a new one that has different weapons. If your mod stores references to spidertrons, then these references will become invalid after a switch. This mod adds the event on_spidertron_switched containing previous_spidertron_unit_number :: int and new_spidertron :: LuaEntity that will allow you to transfer information associated with the previous spidertron's unit number to the new spidertron.

if game.active_mods["SpidertronWeaponSwitcher"] then
    local event_ids = remote.call("SpidertronWeaponSwitcher", "get_events")
    local on_spidertron_switched = event_ids.on_spidertron_switched
    script.on_event(on_spidertron_switched, function(event)
        -- Do stuff here

Let me know if you plan on using this and I can help you with debugging or adding new features if you need them.

Please leave feedback, balance suggestions and bug reports in the mod discussion tab. If you have specific weapons from other mods that you'd like added into the weapon rotation, let me know!