-
Notifications
You must be signed in to change notification settings - Fork 6
ZenChickenCoops
NOTE: This mod is included in my modpack and can be enabled/disabled via ZenChickenCoops in ZenModPackConfig.json

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).
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).
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
}To disable this mod set "ZenChickenCoops": 0 in ZenModPackConfig.json
All my mods are open-source and published under the Mozilla Public License Version 2.0. Any mods based on my code must be open-source - no obfuscation!
You can modify/reupload/repack my mods if you like, but please credit any original authors/3D model/3rd-party asset creators, and keep in mind any future updates I make will not be automatically applied to repacked mods so make sure to check back from time to time for bugfixes and improvements.
If you find my mods useful, please consider buying me a coffee - it's not expected but very much appreciated: https://buymeacoffee.com/zenarchist
- General Setup Guide
- Core Mod Setup Guide
- ZenModPack Master Config
- Various Info
- Known Bugs & Issues
- Report Bug
My utility style mods for debugging etc.
Mods which affect game mechanics:
- ZenAlcohol
- ZenAllowMapBagSlot
- ZenAntiCombatLogout
- ZenAutoConvertStash
- ZenAutoStackItems
- ZenAutoWinterDetect
- ZenAutoRun
- ZenBasebuildingConfig
- ZenBatteryPASPersistence
- ZenBetterChatFont
- ZenBrokenGlasses
- ZenBuildingDescription
- ZenCarAttachments
- ZenCarBatteryIcon
- ZenCarCompass
- ZenCarGlovebox
- ZenCarsCutDownTrees
- ZenCanteenTablets
- ZenCatchRain
- ZenCauseOfDeath
- ZenChickenCoops
- ZenCraftingSounds
- ZenCraftRagHands
- ZenComboLocks
- ZenCombineJSON
- ZenDropRuinedClothing
- ZenDynamicZoneLoot
- ZenEarPlugs
- ZenFireFuel
- ZenFireWood
- ZenFireplaceStick
- ZenFishingConfig
- ZenFixCarAttachmentGUI
- ZenGraves
- ZenGroundCleaning
- ZenHideGearInCars
- ZenHints
- ZenHologram
- ZenHologramControls
- ZenImmersiveChatHUD
- ZenImmersiveLogin
- ZenInformWeaponStateBug
- ZenInventoryAnimation
- ZenKnifeGardens
- ZenLeftovers
- ZenLogPiles
- ZenMagObfuscation
- ZenMap
- ZenMicCheck
- ZenNotifications
- ZenOpenCansRock
- ZenPainting
- ZenPimpMyRide
- ZenRadioPlugin
- ZenRebuildableWells
- ZenRepairJSON
- ZenRepairPumps
- ZenRepairWells
- ZenServerGUI
- ZenShove
- ZenSplitUI
- ZenSleep
- ZenStaminaSlope
- ZenTerritories
- ZenWeaponEngrave
- ZenWoodHealth
- ZenZombieDoors
Mods which add gear to the game:
- ZenArtillery
- ZenBackwardsCaps
- ZenBookshelf
- ZenBunnyMasks
- ZenCamoCamp
- ZenCarWorkbench
- ZenChess
- ZenChristmasTreeCraft
- ZenConcussionGrenade
- ZenDoubleArmbands
- ZenFlask
- ZenFlint
- ZenGhillie
- ZenJameson
- ZenLadders
- ZenMusic
- ZenNotes
- ZenRaidAlarm
- ZenRaybans
- ZenRunes
- ZenStaticObjects
- ZenSwissKnife
- ZenTimeBomb
- ZenTireRack
- ZenTreasure
- ZenTreehouse
- ZenVikingAxe
- ZenZippoLighter
Mods which run purely server-side:
- ZenBloodDrips
- ZenCampSites
- ZenDynamicZoneLoot
- ZenLootCyclingDetection
- ZenNightConfig
- ZenPersistentTrees
- ZenShelterCargo
- ZenTreesplosions
- ZenZombieController
- ZenZombieConfig
- ZenJameson
My standalone mods