Step-by-step guide · 8 steps

How to make an item spawn in DayZ (types.xml)

If an item never turns up on your server, it either has no entry in types.xml or its entry has nominal set to zero. Adding or fixing that entry is how you make it spawn. On PC with mods it's also how modded items join the loot economy.

  • 3 min read
  • Updated
  • PlayStation, Xbox and PC
db/types.xmlExample
<type name="Mosin9130">    <nominal>6</nominal>    <lifetime>28800</lifetime>    <restock>0</restock>    <min>3</min>    <category name="weapons"/>    <usage name="Hunting"/>    <value name="Tier2"/>    <value name="Tier3"/></type>
Step 1

Find the item's classname

Every item has a classname, such as M4A1 or BakedBeansCan. Use the exact spelling: DayZ ignores entries it can't match. Modded items use the classname the mod author gives.

Step 2

Add or copy an entry

Copy the entry for a similar item and change the name. A rifle copied from another rifle already has sensible lifetime, category and usage. Then set nominal and min above zero.

Step 3

Choose where it spawns

Set its usage (Military, Police, Town and so on) and value tiers. Without a usage it has nowhere to appear. See loot tiers.

Step 4

Check and restart

Validate the file with the XML validator, upload it and restart. Give the economy a little time to spawn the new item.

Step 5

Where to find classnames

The easiest way is to look in your own types.xml, since every vanilla item is already there. Search for a word you know, such as Mosin or Canteen, and you'll find the exact classname. For modded items on PC, the mod's own files or its page usually list them.

Spelling counts. A missing capital or an extra space means the entry doesn't match anything, and the item never spawns.

Step 6

Pick sensible numbers

Copying a similar item gives you a starting point. Then:

  • Nominal: start low, such as 5 for a weapon, and raise it later
  • Min: about half of nominal, so the economy tops it up before it runs out
  • Lifetime: copy from a similar item, usually a few hours for weapons
  • Restock: 0 for common items, longer for rare ones so they can't be farmed
Step 7

Attachments and ammo

Adding a weapon doesn't give it magazines or ammo. Make sure those have entries with nominal above zero too, and decide in cfgspawnabletypes.xml what the weapon spawns with. See weapon attachments.

Step 8

Test a new item

Before you set the final numbers, set nominal and min a little higher than you want, restart and check the item appears where you expected. Once you've seen it in game, bring the numbers down to their final values. It's quicker than waiting days to find out an item never spawns.

Tools for this

Common questions

Why does an item in types.xml still not spawn?

Check nominal and min are above zero, it has a usage and tier that exist on your map, the classname is spelled exactly right, and the file loads without errors.

Can I add modded items on PS5 or Xbox?

No. Console servers can't run mods, so only items in the base game can spawn. Every vanilla item can be added or tuned.

Do I need to add the item anywhere else?

For most items, no. Some, like weapons that should spawn with attachments, also use cfgspawnabletypes.xml.

Why does my new item never spawn?

Check the classname is spelt exactly right, nominal and min are above zero, it has a usage that exists on the map, and you've restarted.

How do I stop an item spawning?

Set its nominal and min to 0 in types.xml and restart. The item stays in the game, but the economy stops placing new ones.

Can I make an item spawn only in one town?

Not exactly. Usage and value flags limit an item to kinds of building and tiers of the map, which narrows it down, but DayZ has no per-town setting.

Run your DayZ server from one place

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