Mods / Capture Animals

Category: #Creatures #Magic #Utility
Author: DArkHekRoMaNT
Side: Both
Created: Feb 25th 2021 at 11:16 AM
Last modified: May 12th at 3:00 PM
Downloads: 22473
Follow Unfollow 183

Latest file for v1.19.7:
CaptureAnimals_VS1.19.7_net7_v2.7.0.zip 1-click install


Requires CommonLib for VS 1.18+

image Crowdin

For those who are tired of driving hens or sheep for thousands of blocks 🙃

Cage case can be crafted on an anvil using all tool materials, to turn it into an empty cage, add resin. By default, it captures with a 10 to 25% chance. If you hit and could not capture, then the cage will be downgrade to case, or it will break with a 50-5% chance. The chance depends on the material and is written in the cage tooltip.

You can increase the cage capture chance in two ways:

  1. Decrease the health of the mob. This will give +1% chance for every -2% of the mob's health (50% efficiency). 
  2. Use bait. By default, these types of baits are available in the mod, but you can change, add (or patch with your mod) in config/baits.json, the rest of the cages settings are in the itemtypes/cage.json attributes.

The first and second methods can be used together. 

Default baits:

  • All chicken: any grain, capture chance: 100%
  • All rabbits: carrot, capture chance: 100%
  • All pigs: turnip, capture chance: 50%
  • All sheep: cabbage, capture chance: 50%
  • All foxes: raw poultry, capture chance: 25%
  • All wolf: raw redmeat, capture chance: 25%

 

Below 2.0.0 - see main forum post (homepage link)

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v2.7.0 2093 May 12th at 3:00 PM Show CaptureAnimals_VS1.19.7_net7_v2.7.0.zip Install now
v2.6.1 2712 Jan 6th at 3:54 PM Show CaptureAnimals_VS1.19.0-rc.5_net7_v2.6.1.zip Install now
v2.6.0 85 Jan 6th at 3:33 PM Show CaptureAnimals_VS1.19.0-rc.5_net7_v2.6.0.zip Install now
v2.5.3 5541 May 13th 2023 at 9:59 PM Show CaptureAnimals_v1.18.2_v2.5.3.zip Install now
v2.5.1 298 May 12th 2023 at 5:17 PM Show CaptureAnimals_v1.18.2_v2.5.1.zip Install now
v2.5.0 1320 Apr 4th 2023 at 11:21 AM Show CaptureAnimals_v1.18.0-rc.1_v2.5.0.zip Install now
v2.4.0 494 Mar 12th 2023 at 6:29 PM Show CaptureAnimals_v1.18.0-pre.6_v2.4.0.zip Install now
v2.3.0 3183 Sep 22nd 2022 at 9:55 AM Show CaptureAnimals_v1.17.4_v2.3.0.zip Install now
v2.2.0 712 Sep 10th 2022 at 4:19 PM Show CaptureAnimals_v1.17.3_v2.2.0.zip Install now
v2.1.1 2010 Mar 6th 2022 at 3:21 PM Show CaptureAnimals_v1.16.4_v2.1.1.zip Install now
v2.1.0 1038 Dec 13th 2021 at 5:11 PM Show CaptureAnimals_v1.16.0-pre.8_v2.1.0.zip Install now
v2.0.1 1327 Jul 25th 2021 at 12:46 PM Show CaptureAnimals_v1.15.2_v2.0.1.zip Install now
v2.0.0 449 Jul 24th 2021 at 9:41 AM Show CaptureAnimals_v1.15.1_v2.0.0.zip Install now
v1.3 1211 Feb 25th 2021 at 11:19 AM Show CaptureAnimals_v1.14.2_v1.3.0.zip Install now

37 Comments (oldest first | newest first)

💬 ForeverGood023, Jul 15th at 4:23 PM

hi! i've made a translation for Portuguese Brazil:
Crowdin
Google Drive

💬 Linrox, May 18th at 7:19 AM

Just had a crash trying to set a trap for a boar with a turnip.

Running on 64 bit Linux (openSUSE Leap 15.5) [Kernel 5.14.21.150500] with 32003 MB RAM
Game Version: v1.19.7 (Stable)
5/18/2024 5:17:29PM: Critical error occurred in the following mod: captureanimals@2.6.1
Loaded Mods: backpackpackplus@1.0.3, chiseltools@1.11.4, moreicons_cs@1.1.0, MoreTreeSeeds@1.0.0, OresAPlenty@3.2.0, plantpropagationgardenseedsmultiplayer@1.0.0, qptech@1.15.1, rustandrails@1.0.4, spyglass@0.5.1, vintageengineering@0.1.3, game@1.19.7, animationmanagerlib@0.8.7, carryon@1.7.4, commonlib@2.3.7, hudclock@3.4.0, steamandpower@1.5.0, storagecontroller@1.0.9, thatsenoughinventory@1.0.2, creative@1.19.7, survival@1.19.7, bullseye-continued@2.5.8, captureanimals@2.6.1
System.NullReferenceException: Object reference not set to an instance of an object.
at CaptureAnimals.InventoryCage.SyncToCageStack()
at CaptureAnimals.InventoryCage.OnInvClosed(IPlayer player)
at Vintagestory.API.Common.InventoryBase.Close(IPlayer player) in VintagestoryApi\Common\Inventory\InventoryBase.cs:line 840
at CaptureAnimals.GuiDialogBait.OnGuiClosed()
at Vintagestory.API.Client.GuiDialog.TryClose() in VintagestoryApi\Client\UI\Dialog\GuiDialog.cs:line 310
at CaptureAnimals.GuiDialogBait.<InitDialog>b__2_0()
at Vintagestory.API.Client.GuiElementDialogTitleBar.OnMouseUpOnElement(ICoreClientAPI api, MouseEvent args) in VintagestoryApi\Client\UI\Elements\Impl\Interactive\GuiElementDialogTitleBar.cs:line 301
at Vintagestory.API.Client.GuiElementDialogTitleBar.OnMouseUp(ICoreClientAPI api, MouseEvent args) in VintagestoryApi\Client\UI\Elements\Impl\Interactive\GuiElementDialogTitleBar.cs:line 325
at Vintagestory.API.Client.GuiComposer.OnMouseUp(MouseEvent mouse) in VintagestoryApi\Client\UI\GuiComposer.cs:line 449
at Vintagestory.API.Client.GuiDialog.OnMouseUp(MouseEvent args) in VintagestoryApi\Client\UI\Dialog\GuiDialog.cs:line 584
at Vintagestory.Client.NoObf.GuiManager.OnMouseUp(MouseEvent args) in VintagestoryLib\Client\Systems\Gui\GuiManager.cs:line 412
at Vintagestory.Client.NoObf.ClientMain.UpdateMouseButtonState(EnumMouseButton button, Boolean down) in VintagestoryLib\Client\ClientMain.cs:line 1909
at Vintagestory.Client.HotkeyManager.TriggerHotKey(KeyEvent keyEventargs, IWorldAccessor world, IPlayer player, Boolean allowCharacterControls, Boolean isGlobal, Boolean fallBack, Boolean keyup) in VintagestoryLib\Client\HotkeyManager.cs:line 431
at Vintagestory.Client.NoObf.ClientMain.OnMouseUpRaw(MouseEvent args) in VintagestoryLib\Client\ClientMain.cs:line 1924
at Vintagestory.Client.NoObf.ClientPlatformWindows.Mouse_ButtonUp(MouseButtonEventArgs e) in VintagestoryLib\Client\ClientPlatform\Input.cs:line 208
at OpenTK.Windowing.Desktop.NativeWindow.MouseButtonCallback(Window* window, MouseButton button, InputAction action, KeyModifiers mods)
--- End of stack trace from previous location ---
at OpenTK.Windowing.Desktop.NativeWindow.RethrowCallbackExceptionsIfNeeded()
at OpenTK.Windowing.Desktop.GameWindow.Run()
at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs) in VintagestoryLib\Client\ClientProgram.cs:line 324
at Vintagestory.Client.ClientProgram.<>c__DisplayClass9_0.<.ctor>b__1() in VintagestoryLib\Client\ClientProgram.cs:line 128
at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 93

💬 Mendall, May 14th at 6:56 PM

Thanks, that will be helpful. I just want to do a little balancing. I think they break a bit too often. At low metal types, and that's when I think people are setting up their animals most times. I don't think many people wait till they have steel to get their animals set up. So I want to set copper and bronze to break a bit less. But I wish the cage did a tiny bit of damage when you hit them with it to add a challenge. So you would have to fight and or chase them as you were caging them. That would be fun and offset the cages not breaking so much. I tried damaging them a bit first and just killed them. But the fight was fun. Unfortunately I ran out of metal to make more before I got two pigs.

💬 DArkHekRoMaNTAuthor, May 14th at 2:21 PM

captureanimals.json from %AppData%/VintagestoryData/ModConfig and assets/config/baits.json from mod zip Mendalla

💬 Mendall, May 13th at 4:04 PM

does this mod have a config file and if so whats it called.

💬 Terrek, May 12th at 9:26 PM

DArkHekRoMaNT according to my friend, they just disappeared when they failed the catch. 

💬 DArkHekRoMaNTAuthor, May 12th at 3:08 PM

This says Cage broken! over the hotbar? Or do they just disappear Terrek
You are using a creative cage with an entity, you need an empty cage pudgydumpling
Cage stores a full entity info, so this should work Novalee

💬 Terrek, Apr 28th at 4:24 PM

Is this still working properly? So far we've yet to have a cage returned after throwing them. 2 steel at supposedly 5% and 1 meteoric iron at 10% seems awful fishy.

💬 pudgydumpling, Feb 9th at 2:17 AM

Creative cage just keeps saying "Undefined entity in cage", vanilla and modded animals included :/

💬 Novalee, Jan 21st at 8:10 PM

Has anyone tried this with tamed animals? I'm curious if they'll retain their bred generations or petai tamed status when captured.

💬 RikeiR, Jan 6th at 10:19 PM

@DArkHekRoMaNT

OK!

💬 DArkHekRoMaNTAuthor, Jan 6th at 3:51 PM

Added. You can change it on Crowdin RikeiR

💬 WickedSchnitzel, Dec 9th 2023 at 8:28 PM

I had the same problem. Thanks for sharing @ThePirateBrew
edit: this unfortunately seems to override "excluded entities".

💬 ThePirateBrew, Nov 10th 2023 at 7:27 AM

For some reason the config for included entities doesnt work whatsoever in 1.18.15. Ive changed up the config several times to include modded animals, both with and without wildcards. Maybe my syntax is wrong? If i add anything to included i just get "animal cannot be captured" unless its a base game animal.

EDIT: After some testing, using "/cl config captureanimals includeentities *:*" fixes all mod compatibility issues, looks like it was a syntax error on the wildcard side.


The config value should look like this:   "Value": "*:*"

💬 RikeiR, Nov 3rd 2023 at 2:51 PM

@DArkHekRoMaNT

Thank you for making such a great mod.

Japanese translation for CaptureAnimals_v1.18.2_v2.5.3 is here!

ja.json

💬 1Joachim1, Jun 1st 2023 at 7:42 AM

DArkHekRoMaNT i had it downloaded and in the mods folder, while it's true that i tried to download the capture animals itself i didn't even think about doing the same with commonlib. i'll take a look. thanks and sorry.

💬 DArkHekRoMaNTAuthor, May 31st 2023 at 7:39 PM

CommonLib 1Joachim1

💬 1Joachim1, May 31st 2023 at 7:02 PM

when i try to activate it in my game it says (in spanish so i'm translating it) "unable to resolve mod dependencies, check the registry files." i'm on my steam deck (linux, flatpack) what should i look for? is there any log for that?

💬 DArkHekRoMaNTAuthor, May 13th 2023 at 10:16 PM

In the last version, I added a config for allowed animals WickedSchnitzel

The bait bonus may differ, depending on the animal. Therefore, only the base efficiency is shown on the cage OpPointBaker

💬 WickedSchnitzel, Apr 23rd 2023 at 12:06 PM

There should be a config to blacklist creatures like traders. People are kidnapping these.

💬 OpPointBaker, Apr 12th 2023 at 9:44 AM

Playing 1.18.0-rc.2 using v2.5.0. When I add grain to an empty cage the window shows the updated capture rates, hoever when I close the window and mouse over the cage it still shows the empty 50% rates. Is this the normal behavior or is the tool tip supposed to update to reflect the bait in the cage?

💬 Babbydoll24, Mar 13th 2023 at 5:12 PM

thank you so very much.

💬 Babbydoll24, Mar 13th 2023 at 7:37 AM
💬 Babbydoll24, Mar 13th 2023 at 7:37 AM
💬 DArkHekRoMaNTAuthor, Mar 12th 2023 at 6:30 PM

Updated Babbydoll24

💬 Babbydoll24, Mar 11th 2023 at 10:29 PM

will this work in 1.18?

💬 DanaCraluminum, Sep 22nd 2022 at 10:00 AM

It would be great to have cages ground storable

💬 DArkHekRoMaNTAuthor, Sep 22nd 2022 at 9:57 AM

Yes. But if baits are not registered for them - only default chances from the cage Stejer

💬 Heebeejeebees, Sep 14th 2022 at 10:02 AM

Causes unhandled exception with player corpse — corpse doesn't generate, waypoint isn't created. For people wanting to put animals in cages and find their way back to where they died for recollecting their stuff, you're going to lose your stuff.

Well colour me damned I didn't know there was an update for Player Corpse until it was brought up on GitHub. Thanks!

💬 Stejer, Sep 13th 2022 at 8:51 PM

Can you catch animals from other mods with this?

💬 MagentaLizard, Sep 12th 2022 at 1:43 AM

Yes thank you!

💬 MagentaLizard, Sep 6th 2022 at 2:48 AM

God please update this for 1.17.2 that'd be amazing. I wanna make a massive bear pit.

💬 Cendar, Jan 19th 2022 at 4:28 AM

Hi! I made a french translation for your mod, feel free to add it if you want. 😊

fr.json - CaptureAnimals 2.1.0

💬 DArkHekRoMaNTAuthor, Dec 13th 2021 at 5:12 PM

CaptureAnimals v2.1.0 compatible with 1.16.0-pre.8 or higher, not compatible with 1.15.10

💬 DArkHekRoMaNTAuthor, Jul 24th 2021 at 11:07 AM

CaptureAnimals updated to 1.15
Warning! 2.0.0+ is not compatible with older versions, you will lose all your cages.

💬 BotenRedWolf, Jun 20th 2021 at 5:42 PM

Hoping to use it on 1.15 but tis broken. Any plans to bring it up to 1.15 soon?

Version: v1.15.0-pre.4 (Unstable)6/20/2021 12:40:09: Critical error occurred
System.MissingFieldException: Field not found: 'Vintagestory.API.Common.CollectibleObject.Attributes'.
at CaptureAnimals.ItemCage.GetHeldItemInfo(ItemSlot inSlot, StringBuilder dsc, IWorldAccessor world, Boolean withDebugInfo)

💬 WickedSchnitzel, Apr 17th 2021 at 7:58 AM

v1.3.0 - [Warning] Failed resolving a blocks itemdrop or smeltedstack with code captureanimals:cage-blistersteel-case in smithing recipe captureanimals:recipes/smithing/cage-case.json

(edit comment delete)