Мод AgricultureCore для DayZ (дейз). Установлен на 260 серверах RiseOfServers. Ниже: серверы с модом и описание Workshop.
AgricultureCore
AgricultureCore is the shared foundation for my Agriculture-based mods. It’s mostly meant to combine common scripts/content in one place so updates can be isolated to this mod, instead of duplicating code and files across multiple projects.
In-game, it provides a configurable core plant/harvest system (driven by a plant registry and server settings) and includes shared item/effect functionality used by related mods.
Features
[*]Core plant registry system via AC_RegisterPlant() and g_AG_PlantRegistry for registered plant types (GrowTime, CropCount, InitialYield, minute-based grow time option, and fertilize behavior flags).
[*]Modded plant lifecycle behavior (registered plants)
[*]Custom growth timing and maturity calculations for registered plants.
[*]Spoil timing controlled by a server setting (MinutesToPlantSpoiling).
[*]Infestation chance set to 0.0 in the PlantBase constructor.
[*]Fertilization can affect crop count and yield based on registry flags and fertility/harvesting efficiency.
[*]Modded harvesting behavior
[*]Harvest action is gated so it only executes when a plant exists and has crops.
[*]Harvest spam protection (5-second cooldown) to prevent repeated harvest processing.
[*]Harvest spawns crop items up to the plant’s crop count and sets created items to maximum quantity.
[*]If the plant is spoiled, harvested edible items are set to the rotten food stage where applicable.
[*]Optional plant removal after harvest (RemovePlantAfterHarvest).
[*]Plant removal behavior
[*]Optional PlantMaterial drop when removing a plant, controlled by EnablePlantMaterialDrop (quantity scales with current plant material quantity).
[*]Persistence
[*]Saves/loads crop state, crop count, and current yield (server-side).
[*]Exposes yield accessors (GetCurrentYield/SetCurrentYield).
[*]Server configuration + client sync
[*]Server loads a JSON config, supports versioning/backup of outdated configs, and validates minimum values.
[*]Clients request the config at mission start and receive it via RPC so client-side scripts can use the server’s settings.
[*]Optional server/client debug logging toggles via config.
[*]Smokable base + smoke particle support
[*]AC_SmokableBase provides a network-synced smoking state and synchronized health value.
[*]Smoke particles are started/stopped and tuned based on smoke state (SMOKING / INACTIVE / NOT_SMOKING).
[*]Includes a registered particle entry: AC_SMOKE (from "AgricultureCore/Particles/" "smoke") and an EffSmoke effect that uses it.
[*]Rolling papers items
[*]Adds AC_RollingPapers (and Green/Silver variants) with quantity (0–20) and an "AC_RollingPapers" inventory slot/proxy.
[*]Cigarette pack item
[*]Adds AC_CigarettePack_Empty (crafted loot category) using the vanilla cigarette pack model with custom textures/material damage states.
Installation
[*]Subscribe to the mod on the Workshop.
[*]Enable AgricultureCore in the DayZ Launcher (client and server).
[*]Restart the server/client after enabling.
Configuration
AgricultureCore uses a JSON configuration (loaded server-side) and sends the active settings to clients on mission start.
Config fields present:
[*]EnableServerDebugLogging
[*]EnableClientDebugLogging
[*]RemovePlantAfterHarvest
[*]EnablePlantMaterialDrop
[*]MinutesToPlantSpoiling
[*]SecondsToFertilizeUsingPlantMaterial
[*]SecondsToFertilizeUsingGardenLime
Compatibility
[*]Uses vanilla cultivation scripting (requires DZ_Gear_Cultivation as an addon dependency).
[*]Modifies core behavior for PlantBase and ActionHarvestCrops; any other mod that also overrides these may conflict depending on load order and implementation.
You may repack this mod, although I don't recommend it because if I update it, and you aren't fast enough updating your repacked version, it may mess up CannabisPlus, DrugsPlus, and/or GardeningPlus.
Credits
Author: IceBlade