Wiki Navigation

cfgspawnabletypes.xml Configuration

Configure item spawns and loot distribution in your DayZ server using cfgspawnabletypes.xml.

Overview

The cfgspawnabletypes.xml file defines what items can spawn in your DayZ server world and controls:

  • Item spawn locations and distribution across the map
  • Loot spawn frequencies and quantities
  • Spawn conditions and probabilities for different item types
  • Mapping between item types and spawn locations

File Structure

The cfgspawnabletypes.xml file uses a structured format to define spawn configurations:

<spawnabletypes>
<type name="...">
<usage name="...">
<location name="...">
<tag name="...">
<value name="...">

Example Configuration

<spawnabletypes>
    <type name="Clothing">
        <usage name="Military">
            <location name="Military">
                <tag name="floor"/>
                <tag name="shelves"/>
            </location>
            <value name="Tier1" type="array">
                <item name="TTsKOJacket_Camo" chance="0.07" />
                <item name="TTsKOPants_Camo" chance="0.07" />
                <item name="CombatBoots_Green" chance="0.08" />
                <item name="BalaclavaMask_Green" chance="0.05" />
            </value>
            <value name="Tier2" type="array">
                <item name="BDUJacket" chance="0.05" />
                <item name="BDUPants" chance="0.05" />
                <item name="MilitaryBoots_Redpunk" chance="0.05" />
                <item name="BallisticHelmet_Green" chance="0.03" />
            </value>
        </usage>
        <usage name="Civilian">
            <location name="Town">
                <tag name="floor"/>
                <tag name="shelves"/>
            </location>
            <value name="Tier1" type="array">
                <item name="Jeans_Blue" chance="0.10" />
                <item name="TShirt_White" chance="0.10" />
                <item name="AthleticShoes_Blue" chance="0.08" />
                <item name="BaseballCap_Red" chance="0.05" />
            </value>
        </usage>
    </type>
</spawnabletypes>

Configuration Elements

Type and Usage

type element

Defines a category of items (e.g., "Clothing", "Weapons")

usage element

Defines a subcategory or context for spawning (e.g., "Military", "Civilian")

Location and Tags

location element

Defines where items can spawn (e.g., "Military", "Town", "Village")

tag element

Specifies spawn points within locations (e.g., "floor", "shelves", "table")

Values and Tiers

value element

Groups items by tier or category (e.g., "Tier1", "Tier2", "Tier3")

item element

Defines a specific item that can spawn with its chance value

Item Attributes

name attribute

The item's class name as defined in types.xml

chance attribute

Probability of the item spawning (0.0 to 1.0)

Spawn Configuration Tips

  • Balance item spawn chances to maintain game economy
  • Use tiers to control item distribution across different map areas
  • Consider player progression when configuring military/high-tier loot
  • Test spawn configurations thoroughly to ensure proper distribution
  • Keep spawn chances realistic - rare items should have lower chance values