
Mods / Repairable Locust
Author: Pal_5000
Side: Both
Created: Nov 8th 2023 at 8:27 AM
Last modified: Mar 20th at 4:13 AM
Downloads: 12583
Follow Unfollow 175
Latest release (for outdated Vintage Story v1.20.x):
RepairableLocust_1.4.1.zip
1-click install
Tired of always loosing your bronze mechanical buddy?
This mod allows clockmakers to actively heal or revive bronze locusts after they have been destroyed in combat.
Upon death, hacked bronze locusts will drop scattered parts that can be used in the crafting grid alongside a wrench and soldering iron to revive the locust. Repairing a locust takes 25 points of durability off the wrench and 1 solder bar of any type. You must be a clockmaker to repair a locust.
You can also prod hacked locusts with a tuning spear to repair them before they are destroyed. Locusts will now flee most enemies for a short duration when low on health, so keep an eye out and repair them when they start to run.
This mod also makes it so only Shift + Right Click will toggle the "Follows" / "Waits" state on locusts.
Hacked locust lightbulbs are no longer automatic, and are toggled manually with Ctrl + Right Click.
Hacked locust bulbs are now colored a temporal-ish green.
Bronze locusts have had some of their stats buffed too, note these changes are only applied to HACKED locusts, normal locusts remain unchanged:
- Combat Tier 2 -> 3
- Attack Damage 1.5 -> 3.8 (Same as a Tin Bronze spear)
- Health 18 -> 25 (This has been replaced with the "Damage Cap" mechanic added in version 1.4.0 and beyond.)
Hacked Locusts now feature a "Damage Cap" mechanic, allowing them to face tougher enemies without immediate player oversight. If the locust is about to take more than 5 damage, the damage is reduced to 5. This means the normal Bronze Locust can withstand up to 4 hits at max damage and will briefly flee after taking 3 hits. You can tell when the damage is reduced as the locust will emit a more distinct hurt sound.
(Also note there is a cap to this cap, if 100 or more damage is taken it will not apply and the locust will die instantly.)
Unfortunately corrupted locusts are far too twisted to be repaired after death. Although they still have a use since their stats are superior to a bronze locust even with the buffs.
Hacked locust bodies now instantly disappear instead of taking 24 hours.
Existing Locusts may need to be replaced for the changes of v1.3.0 and beyond to fully apply!
Checkout the companion mod "Upgradeable Locust" which allows you to enhance your bronze buddy even further using expensive items to convert them into a sawblade variant!
Oversights:
A clockmaker can gift repaired locusts to other players if they toss them the item and do not place it themselves.
Repaired hacked locusts stack to 64, in theory in you could build up a large reserve of locusts and deploy them as they die in combat.
I recommend not taking advantage of these oversights and sticking to one locust per clockmaker.
There's a bug where a tuning spear will seemingly disappear after opening your inventory after repairing a locust repeatedly for awhile. This bug is not introduced by this mod and can occur without this mod loaded by repeatedly hitting a corpse and opening your inventory as well. Luckily it is largely visual, simply grab your spear out of the supposedly empty slot. Other interactions can also correct it.
This will likely have compatibility issues with mods that alter the stats of hacked locusts or that add their own repairable locusts.
Works fine with the "Hacked Locusts" mod.
I recommend using the Animal Cages mod to transport both hacked locusts and Mechanical Companions through translocators, simply add them to the list of possible entities for small cages through the config.
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v1.4.1 | 2693 | Mar 20th at 4:13 AM | Show | RepairableLocust_1.4.1.zip | 1-click install | |
v1.4.0 | 4005 | Dec 15th 2024 at 4:02 AM | Show | RepairableLocust.zip | 1-click install | |
v1.3.0 | 3661 | Apr 25th 2024 at 11:21 PM | Show | RepairableLocust.zip | 1-click install | |
v1.2.0 | 1661 | Nov 21st 2023 at 11:53 AM | Show | RepairableLocust.zip | 1-click install | |
v1.1.0 | 342 | Nov 8th 2023 at 10:57 PM | Show | RepairableLocust.zip | 1-click install | |
v1.0.0 | 218 | Nov 8th 2023 at 9:28 AM | Show | RepairableLocust.zip | 1-click install |
Translation into Russian
Translation into Russian of your mod. Thanks for your work!
I'm noticing the hacked bronze locust when put on "wait" still moves around fairly frequently when in the base game a hacked bronze locust would sit in some spot on "wait." Is this possibly a bug or is there something I did that I can do to fix it? It's crawling all over our cellar and I don't want it to light itself on fire haha.
It also seems to be lagging our dedicated server but I don't know if that's just my connection or not. I'm on 1.20.7 so maybe that's it? The lag only happens after I interact with the locust.
Edit: The lag wasn't due to the locust, it was due to the minimap zoom (which makes sense), however it still moves around a lot while put on wait but I think the vanilla one might do that too.
FishSwalad
You should be able to make the changes you want with some pretty basic Json patch operations, I wont give a guide here but for this specifically (And for easily making tweak mods like you want) there is a tool in the game called the Mod Maker, here's the wiki link here: https://wiki.vintagestory.at/Special:MyLanguage/Modding:Inbuilt_ModMaker
Given your looking to make simple changes I'd ask for help in one of the community hubs if you're having a hard time.
Hi, i am trying to give the hacked bronze locust and extra 2hp and maybe somehow increase it's light raqdius, do You have any idea how to do this -this is my first time messing aroudnw ith files
Yesss thank you!
MrDGrim
i1kana
Released an update that should fix it, thank you both for reporting!
yup. errors in patch 1.20.5
The game throws this error in the new 1.20.5 stable release
18.3.2025 13:15:59 [Error] Patch 1 (target: game:entities/land/locust-hacked.json) in repairablelocust:patches/locust-patches.json failed, following Exception was thrown:
18.3.2025 13:15:59 [Error] Exception: Index must be within the bounds of the List. (Parameter 'index')
at Newtonsoft.Json.Linq.JContainer.InsertItem(Int32 index, JToken item, Boolean skipParentCheck, Boolean copyAnnotations)
at Newtonsoft.Json.Linq.JArray.Insert(Int32 index, JToken item)
at JsonPatch.Adaptors.JsonNetTargetAdapter.AddReplace(AddReplaceOperation operation)
at JsonPatch.Adaptors.BaseTargetAdapter.ApplyOperation(Operation operation)
at Tavis.PatchDocument.ApplyTo(IPatchTarget target)
at Tavis.PatchDocument.ApplyTo(JToken jToken)
at Vintagestory.ServerMods.NoObf.ModJsonPatchLoader.ApplyPatch(Int32 patchIndex, AssetLocation patchSourcefile, JsonPatch jsonPatch, Int32& applied, Int32& notFound, Int32& errorCount) in VSEssentials\Loading\JsonPatchLoader.cs:line 334
Pal_5000 ok. didnt know that. thank you
ChristsRisen
It should be! The only thing that is likely to trip you up at that point is the vanilla game behaviour of the spear having a 0% chance to hack a locust if used by a different class. (I dont know if this has been changed, but even turning off class exclusive recipies wouldn't affect this!)
Once you actually have a hacked locust though, all the content of this mod should work fine with class exclusive recipies turned off.
is this playable with another class if you have class exclusives turned off in your world? thx
Pal_5000 Thanks. Thats a lifesaver. Could I humbly request that gets added to one of the descriptions of one of your two mods? <3
Styxus
Funnily enough, I actually posted the specific settings I use to carry the two Locusts and my other mechanical companion in the comments on the Mechanical Companion mod page. Take a look at that page, scroll down abit into the comments, and you should find the settings for animal cages to carry them.
This might be a silly question, but what is the entity code for the hacked bronze locust, hacked corrupted locust, and hacked bronze sawblade locusts from these mods. I tried to find it with commands but can't seem to find which commands. I was looking for IDs, but those didnt help. (I am trying to use Animal Cages).
WastedWanderer It works fine on 1.20.3 I even used it mainly then, I was just selecting the last few 1.20 versions so the little tag in the release said "Various v1.20.X", it should work perfectly fine for all the 1.20 versions so far apologies for the confusion.
i noticed the 1.20. skips 1.20.3 is it compatiable with *.3 and just a typo or unknown?
YellowWizard The 1.19.7 version ought to work just fine. The only one of my mods so far that really needed any desperate updating to work with a newer version so far has been Craftable Companion making the leap to 1.20 due to changes with entity inventories. Even the newest version might work but I'm not as sure.
Is there a 1.19.8 version?
SovietSwede Thank you for your appreciation. They are from this outdated but still partially working mod: "Piing's Hats"
Nice work with this mod!
Somewhat unrelated question. The goggles worn in the screenshot, what are they? where are they from?
can i use this as any class? i dont want to have to change my class just to mess with locusts
@Pal_5000 - Question on compatability, but does this mod have any issues when it comes to XSkills' scrapping ability?
This mod is such a breath of fresh air, Im really enjoying it, thank you!
The only thing more I think I could want from it is the ability to repair our little locus buddy faster without him dying first.
Maybe you could hold right click on a hacked locus with a wrench to gradually manually heal it back up, the speed based on teir of wrench perhaps?
@Alatyr That's actually a really solid idea. Thank you. Might release an update to do exactly that.
I would recommend adding a soldering iron and solder to the crafting grid. And reduce the waste of wrench strength by half accordingly.