Wiki Navigation

Types.xml Configuration

The types.xml file is the core configuration file that controls item spawns, quantities, and distribution in your DayZ server.

Overview

The types.xml file defines how items spawn in your DayZ server. It controls:

  • Which items can spawn in the world
  • How many of each item can exist at once
  • Where items can spawn
  • How items are distributed across the map
  • Item lifetime and cleanup settings

File Structure

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>

Essential Parameters

nominal integer

How many of this item can be in the server.

lifetime integer

Once this item spawns how long (seconds) it will stay in place if no one picks it up.

restock integer

Time until this item can spawn in again.

min integer

Minimum amount for this item to spawn. Must be less than or equal to nominal.

Quantity Parameters

quantmin integer

Minimum amount within the item e.g a water bottle or magazine. Use -1 if item doesn't hold a quantity of something.

quantmax integer

Maximum amount within the item e.g a water bottle or magazine. Use -1 if item doesn't hold a quantity of something.

cost integer

The spawn chance, similar to a priority system.

Flag Parameters

count_in_cargo boolean

Includes items in cargo (backpacks, crates, cars).

count_in_hoarder boolean

Includes items in cargo (tents, barrels, stashes etc).

count_in_map boolean

Includes items inside buildings.

count_in_player boolean

Includes items in players inventory.

crafted boolean

Mark a player craftable item only.

deloot boolean

Dynamic event loot such as a heli crash.

Category and Usage Parameters

category string

Item category group.

usage string

Area for where the item will spawn e.g farm. You can have up to 4.

value string

Item value grouping. Tier1 (Spawn zones) through to Tier4 (Tisy military).

Best Practices

Do's

  • Balance nominal values based on item rarity
  • Set appropriate lifetimes for item types
  • Use categories and flags consistently

Don'ts

  • Set extremely high nominal values
  • Ignore min values for important items
  • Mix different usage types

Common Configurations

Military Weapons

<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>

Food Items

<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>

Pro Tips

Always backup your types.xml file before making changes. Use tools like DZconfig to manage and validate your configurations automatically.