{"id":16860837,"url":"https://github.com/tburrows13/spidertronweaponswitcher","last_synced_at":"2025-04-11T04:22:46.624Z","repository":{"id":79116568,"uuid":"289576783","full_name":"tburrows13/SpidertronWeaponSwitcher","owner":"tburrows13","description":"Factorio mod that allows the spidertron to use any weapon","archived":false,"fork":false,"pushed_at":"2024-02-10T04:37:47.000Z","size":146,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T02:37:10.483Z","etag":null,"topics":["factorio","factorio-mod"],"latest_commit_sha":null,"homepage":"https://mods.factorio.com/mod/SpidertronWeaponSwitcher","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tburrows13.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-22T22:28:42.000Z","updated_at":"2025-02-21T12:18:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"74f3a1e0-1970-4984-b5cb-28803fc7f50b","html_url":"https://github.com/tburrows13/SpidertronWeaponSwitcher","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tburrows13%2FSpidertronWeaponSwitcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tburrows13%2FSpidertronWeaponSwitcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tburrows13%2FSpidertronWeaponSwitcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tburrows13%2FSpidertronWeaponSwitcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tburrows13","download_url":"https://codeload.github.com/tburrows13/SpidertronWeaponSwitcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248340374,"owners_count":21087439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["factorio","factorio-mod"],"created_at":"2024-10-13T14:27:22.274Z","updated_at":"2025-04-11T04:22:46.568Z","avatar_url":"https://github.com/tburrows13.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spidertron Weapon Switcher\n==================\n\nIf you've been wanting your spidertrons to fire more than just rockets, this is the mod for you! They now contain machine guns, shotguns, flamethrowers, cannons and rocket launchers.\n\n![Demonstration gif](https://i.imgur.com/hdvItFc.gif)\n\n-----\nFeatures\n-----\n\n- Press *Control + Tab* (or *\\\\* ) whilst in a spidertron or whilst hovering over one with the mouse to rotate through 5 different weapon options\n- Machine gun, shotgun, cannon and flamethrower have all been given their own 'spidertron version' with increased range and damage compared to normal\n- Supports MK2 \u0026 MK3 spidertrons from [Spidertron Extended](https://mods.factorio.com/mod/spidertron-extended) and spiderling from [Spidertron Patrols](https://mods.factorio.com/mod/SpidertronPatrols)\n\n-----\nLimitations\n-----\n\n- When you switch a spidertron's weapons, any remotes connected to it that are stored in an inventory more than 30 tiles from a player will become disconnected\n- Compatibility with [Spidertron Enhancements](https://mods.factorio.com/mod/SpidertronEnhancements) is limited. Specifically, any ammo in inactive weapon slots is lost when using that mod's enter/exit vehicles feature \n\n-----\nTranslation\n-----\n\nYou can help by translating this mod into your language using [CrowdIn](https://crowdin.com/project/factorio-mods-localization). Any translations made will be included in the next release.\n\n-----\nMod Compatibility\n-----\nWhen 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 `old_spidertron` :: LuaEntity and `new_spidertron` :: LuaEntity that will allow you to transfer information associated with the old spidertron's unit number to the new spidertron.\n```\nif game.active_mods[\"SpidertronWeaponSwitcher\"] then\n    local event_ids = remote.call(\"SpidertronWeaponSwitcher\", \"get_events\")\n    local on_spidertron_switched = event_ids.on_spidertron_switched\n    script.on_event(on_spidertron_switched, function(event)\n        -- Do stuff here\n    end)\nend\n```\n\nLet me know if you plan on using this and I can help you with debugging or adding new features if you need them.\n\n-----\n\nIf you have specific weapons from other mods that you'd like added into the weapon rotation, let me know!\nCheck out my other mods: [Spidertron Patrols](https://mods.factorio.com/mod/SpidertronPatrols) and [Spidertron Enhancements](https://mods.factorio.com/mod/SpidertronEnhancements)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftburrows13%2Fspidertronweaponswitcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftburrows13%2Fspidertronweaponswitcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftburrows13%2Fspidertronweaponswitcher/lists"}