DayZ
70 ratings
Zens Chicken Coops
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Economy, Mechanics
File Size
Posted
Updated
41.326 KB
18 May, 2023 @ 12:13am
18 May, 2023 @ 12:17am
3 Change Notes ( view )

Subscribe to download
Zens Chicken Coops

Description
What Is This?

This mod adds the ability to harvest chicken feathers from chicken coops (used for crafting crossbow bolts as of DayZ update 1.21).

It's based on my Firewood mod that allows players to harvest firewood from firewood piles, pretty much just copy & pasted that mod and adapted the classnames to work with chicken coops.

There is a JSON config that allows you to specify what objects count as chicken coops and how many feathers can be harvested from each (feather quantity resets on server restarts).

How It Works (For Server Owners):

The mod spawns invisible objects on every chicken coop on the map based on the objects you define in the json config.

By default the mod will automatically detect the static object types that contain these words in their classname: _chickencoop, _hutch

It works with the vanilla static objects and any bldr_ objects placed with the DayZ Editor or spawned in with the json/init.c/etc methods.

This means you can place chicken coops on Namalsk for example, and players can harvest feathers from them.

The server may take a while to scan the map for chicken coops when you first run the mod (usually within 1-2 minutes). After the mod scans the map for chicken coops it will save the locations of them all so the next reboot will be much faster.

If you need to re-scan the map for chicken coops (eg. after adding custom coops with the DayZ Editor) then set DumpObjectLocations to 1 in the config. And if you need to temporarily disable the chicken coops for any reason without deleting the locations, just set SpawnChickenCoops to 0 and the next restart will not allow harvesting feathers from the coops.

The message displayed when a chicken coop runs out of feathers is also in the config for other language compatibility ("NoFeathersLeftMessage").

And finally, each chicken coop object has its own config. MinFeathers and MaxFeathers allows you to specify the min and max quantity of feathers per coop per server restart (using the default settings, small coops will spawn between 0 and 10 feathers and large hutches will spawn between 0 and 30 feathers).

MaxFeathersPerCollect allows you to specify how many feathers can be found per action performed (default is between 1-3 for small coops and 1-6 for large hutches).

Some maps might have more coops than others, so you should tweak these values depending on how easy you want players to be able to make crossbow bolts on your server.

WIth the default settings, if the player is not wearing gloves there is a small chance of cutting themselves (10% or 0.1) - this can be adjusted or disabled by tweaking ChanceOfBleed (set to 0 to disable).

DamageGloves is how much damage to deal to gloves if they are worn (there is no chance of bleeding if gloves are worn).

Don't touch Offset or Orient, those are just there to allow you to add new chicken coop objects in the future if required. Offset is the location offset to place the invisible chicken coop action object on top of the static coop object, and orientation is the orientation offset. Turn DebugOn to 1 to see the actual coop action objects as a red hologram if required.

Installation Instructions:

Install this mod like any other mod - copy it into your server folder and add it to your mods list. Make sure to copy the .bikey into your server keys if you're not using a server management tool like OmegaManager which does that automatically.

When you run the mod for the first time a default JSON config will be created in your server profile: %server_root%/profiles/Zenarchist/ZenChickenCoopsConfig.json

This mod must be installed on both the server & client.

Repack & Source Code:

Unfortunately due to lack of time I can't maintain all of my mods all of the time. I do my best, but these mods are offered as-is. If there's a problem, you have the source code and my permission to fix it yourself and upload a fixed version to the workshop without any credit necessary. It's all free.

You can repack this mod if you like, and do anything else you want with it for that matter. The source code is on my GitHub at www.zenarchist.com

Buy Me A Coffee:

All my mods are free and open source, but it takes an enormous amount of time to put some of these mods together. If I've helped you out, please consider helping me buy my next coffee! I don't expect it, but I very much appreciate it.

https://buymeacoffee.com/zenarchist

Enjoy!
8 Comments
FreddyCruger 20 Jun @ 9:05am 
not working after 1.28 update
Rellur 18 Feb @ 3:01pm 
can you update this ples :< big love!!
GMoneyYo 4 Dec, 2023 @ 12:27pm 
Hello Zen! FYI, any mod with an apostrophe will fail to be added by Omega Manager (its a popular dayz server manager. For example, I can add:

2851504507 ZenCatchRain

But i cannot add:

2977262455 Zen's Chicken Coops
3043440124 Zen's Crafting Sounds
2877877368 Zen's Firewood Piles
2905487932 Zen's Persistent Trees
2924580520 Zen's Repairable Wells
2954295983 Zen's Static Barbed Wire
2932842394 Zen's Zombie Door Bangers

I have opened up a ticket with Omega Manager and lets see what they say.
lolarennt 28 Nov, 2023 @ 12:53pm 
Thank you!
Tiago8v 15 Jul, 2023 @ 10:36am 
@zenarchist, can you accept my friend request I need to talk to you about one of your mods. Pls. :(
Phoenix-_-1983 25 May, 2023 @ 4:54am 
Anyway that this can be tweeked for console now feathers are a thing in base game or is that still not possible? I am currently tryna make an event on console that will spawn feathers at coups around the map similar to other spawn like cars ect.
bsgaming 20 May, 2023 @ 9:14am 
Thank you for making DAYZ better
Antnommer 18 May, 2023 @ 1:13pm 
Finally, a new chicken coop mode! Thank you!