Skip to content

ZenChickenCoops

Zenarchist edited this page May 6, 2026 · 4 revisions

NOTE: This mod is included in my modpack and can be enabled/disabled via ZenChickenCoops in ZenModPackConfig.json

download

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:

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.

Note: When you run your server for the first time after installing the mod, the mod will take some time to automatically detect all the hooked objects and saves them to the json DB located in mpmissions/map_name/storage_1/zenarchist/hookspawnerdb/XXX_DB.json

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 either delete the config file to refresh it or set DumpAllObjects to 1 in the config. And if you need to temporarily disable the chicken coops for any reason without deleting the locations, just set SpawnObjects 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).

ZenChickenCoopsConfig.json

profiles/Zenarchist/ZenChickenCoopsConfig.json

{
    "ConfigVersion": "1.29.1", // Don't touch
    "DumpAllObjects": 0, // Set to 1 to force a new object scan & position dump
    "SpawnMapGroupPosXML": 0, // Set to 1 to spawn a mapgrouppos_new_entries.xml file in the profiles root folder
    "SpawnObjects": 1, // Set to 0 to disable spawning the invisible chicken coops (ie. disable the mod)
    "SpawnHooks": [], // A list of static objects to scan and hook onto
    "DebugOn": 0, // Set to 1 to enable debug mode (lets you see the invisible coop objects in-game)
    "NoFeathersLeftMessage": "#STR_ZenNoFeathersLeft", // The text message sent to players when feathers are all gone
    "CoopTypes": [] // Chicken coop config for specific chicken coops
}

Master Config

To disable this mod set "ZenChickenCoops": 0 in ZenModPackConfig.json

ZEN'S MOD WIKI

Setup Guide

General Information


Utilities

My utility style mods for debugging etc.

Game Mechanics

Mods which affect game mechanics:

Gear / Objects

Mods which add gear to the game:

Server-Side Mods

Mods which run purely server-side:

Mods Not In Modpack

My standalone mods

Clone this wiki locally