The types.xml file is the core configuration file that controls item spawns, quantities, and distribution in your DayZ server.
The types.xml file defines how items spawn in your DayZ server. It controls:
The types.xml file consists of multiple <type>
elements, each defining a specific item's spawn configuration:
<type name="PeachesCan">
<nominal>15</nominal>
<lifetime>14400</lifetime>
<restock>0</restock>
<min>12</min>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
<category name="food"/>
<tag name="shelves"/>
<usage name="Town"/>
<usage name="Village"/>
<usage name="School"/>
<value name="Tier1"/>
<value name="Tier2"/>
<value name="Tier3"/>
</type>
How many of this item can be in the server.
Once this item spawns how long (seconds) it will stay in place if no one picks it up.
Time until this item can spawn in again.
Minimum amount for this item to spawn. Must be less than or equal to nominal.
Minimum amount within the item e.g a water bottle or magazine. Use -1 if item doesn't hold a quantity of something.
Maximum amount within the item e.g a water bottle or magazine. Use -1 if item doesn't hold a quantity of something.
The spawn chance, similar to a priority system.
Includes items in cargo (backpacks, crates, cars).
Includes items in cargo (tents, barrels, stashes etc).
Includes items inside buildings.
Includes items in players inventory.
Mark a player craftable item only.
Dynamic event loot such as a heli crash.
Item category group.
Area for where the item will spawn e.g farm. You can have up to 4.
Item value grouping. Tier1 (Spawn zones) through to Tier4 (Tisy military).
<type name="M4A1">
<nominal>8</nominal>
<min>3</min>
<lifetime>14400</lifetime>
<restock>1800</restock>
<flags>1</flags>
<category>weapons</category>
<usage>Military</usage>
</type>
<type name="TacticalBaconCan">
<nominal>40</nominal>
<min>25</min>
<lifetime>7200</lifetime>
<restock>1800</restock>
<quantmin>1</quantmin>
<quantmax>3</quantmax>
<cost>100</cost>
<flags>1</flags>
<category>food</category>
<usage>Town</usage>
</type>
Always backup your types.xml file before making changes. Use tools like DZconfig to manage and validate your configurations automatically.