Explainer

DayZ types.xml explained, value by value

types.xml is the biggest file on a DayZ server and the one people search about most. It has an entry for every item in the game, and each entry uses the same handful of values. Once you know what they do, changing loot stops being guesswork. Ready to edit? Follow how to edit types.xml on Nitrado.

  • 4 min read
  • Updated
  • PlayStation, Xbox and PC
db/types.xmlExample
<type name="Canteen">    <nominal>15</nominal>    <lifetime>14400</lifetime>    <restock>0</restock>    <min>8</min>    <quantmin>10</quantmin>    <quantmax>90</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="tools"/>    <usage name="Military"/></type>

What one entry looks like

Each item is a type block with a name, a few numbers, a flags line and some placement tags. The name must match the item's class name exactly as the game spells it, or the entry does nothing. You'll find the file in your mission's db folder: on Nitrado that's mpmissions, your map's mission folder, then db, and on console it sits inside a dayzps (PlayStation) or dayzxb (Xbox) folder.

The example on this page is the Canteen from a default server. Every other item follows the same pattern, from a tin of beans to an M4.

The numbers

These decide how many of an item exist and how long they last:

  • Nominal: how many the economy aims to keep on the map
  • Min: when the count falls below this, more spawn
  • Lifetime: seconds an untouched item stays on the ground
  • Restock: seconds before the item may spawn again
  • Quantmin and quantmax: how full things like magazines and bottles start, as a percentage (-1 means not used)
  • Cost: priority when the economy chooses what to spawn (100 is normal)

How the numbers work together

The Central Economy counts each item and compares the total with min. Once the count drops below min, it starts spawning more until it reaches nominal again. Restock is the wait before that refill may begin, so 0 means straight away and 1800 means half an hour.

Lifetime only matters once an item is lying on the ground. 3600 is an hour and 14400 is four hours. Base items such as tents and barrels use very long lifetimes, often 3888000 seconds (45 days), so a base doesn't vanish while its owners are offline for a few days.

  • Keep min below nominal, or the economy is always trying to catch up
  • Raise nominal and min together when you want more of something
  • A nominal of 0 means the item never spawns on its own, which is normal for crafted and event-only items

The flags

Each entry has a flags line with on or off switches:

  • count_in_cargo: count items inside containers towards nominal
  • count_in_hoarder: count items in tents, barrels and stashes
  • count_in_map: count items lying on the map
  • count_in_player: count items players are carrying
  • crafted: the item is made by players, not spawned
  • deloot: the item spawns at dynamic events such as heli crashes

Where items spawn

Category groups items (weapons, food, tools, clothes, containers). Usage says which kinds of building or place they spawn in (Military, Police, Medic, Farm, Town, Village, Hunting, Industrial and more). Value sets the map tiers, from Tier1 near the coast to Tier4 in the north-west on Chernarus. Read DayZ loot tiers explained.

Tags narrow it further: floor, shelves or ground. Every category, usage, value and tag name has to be listed in cfglimitsdefinition.xml, in the same db folder. A spelling the game doesn't know is ignored, and the item may stop spawning where you expect.

Attachments live in a different file

types.xml decides whether a rifle spawns. What comes on it, such as a scope, a magazine or a suppressor, is set in cfgspawnabletypes.xml. If guns keep turning up bare, that's the file to change. See DayZ weapon attachments.

Edit it without breaking it

The safest way to change types.xml is a few items at a time, checked before upload. A broken tag stops the whole file loading. If that happens, see server won't start after an XML edit.

Keep one entry per item. Two entries with the same name give confusing results, and it's easy to edit the one the game isn't using.

Tools for this

Common questions

What does nominal mean in DayZ?

Nominal is the target number of an item the Central Economy tries to keep on the map at once.

What's the difference between nominal and min?

Nominal is the number the economy aims for. Min is the floor: once the count drops below it, the economy starts spawning more until it's back at nominal.

What does count_in_hoarder do?

When it's 1, items stored in tents, barrels and stashes count towards nominal, so hoarding reduces how many new ones spawn.

What is quantmin and quantmax?

They set how full an item starts, as a percentage: ammo in a magazine, water in a bottle. -1 means the item doesn't use a quantity.

Is lifetime in seconds or minutes?

Seconds. 3600 is one hour, 14400 is four hours and 3888000 is 45 days.

Is there a DayZ types editor online?

Yes. The Blxckforge Types Editor runs in your browser for free. Your file isn't uploaded unless you choose to save it to your connected server.

Run your DayZ server from one place

Free editors for every config file, plus a live dashboard and Discord feeds when you're ready.