Add modded loot to your DayZ server by editing its loot tables: give each mod item an entry in types.xml or your own types file. No special DayZ loot editor needed, just a text editor.
DayZ decides what spawns, where and how often from XML files in your mission folder. The main one is types.xml: every item that can spawn as loot needs an entry there. Mod items don't spawn until you add them.
On this page
Before you add modded loot to your DayZ server
Changing loot tables needs access to the server files, so you can only do it on your own server, not on official ones.
- The mod must be installed and loaded on your server through Steam Workshop. Loot entries for a mod that isn't loaded do nothing.
- Get the item class names. Many mod authors ship a ready-made
types.xmlwith the mod or post one on the Workshop page or Discord. Use their class names exactly: they are case-sensitive. - Back up your files: before making any changes, take a backup or download a copy of the loot table files, so you can revert to the original settings if something goes wrong.
- Stop your server (press STOP) before making any changes.
Where the loot files are
Each map has its own mission folder inside mpmissions:
- Chernarus:
mpmissions/dayzOffline.chernarusplus/db/types.xml - Livonia:
mpmissions/dayzOffline.enoch/db/types.xml - Sakhal:
mpmissions/dayzOffline.sakhal/db/types.xml - Nasdara:
mpmissions/dayzOffline.nasdara/db/types.xml - Deer Isle:
mpmissions/empty.deerisle/db/types.xml
Open them with the File Manager in the game panel, or over SFTP with a text editor or an XML editor such as Notepad++ or Visual Studio Code. Be careful with syntax: XML is sensitive to formatting. You can also install Advanced Settings from Mod Manager (Advanced Tools): it puts the mission core files in Configuration Files for you.
What a types.xml entry looks like
This is the water bottle entry from the official Chernarus mission:
<type name="WaterBottle">
<nominal>100</nominal>
<lifetime>14400</lifetime>
<restock>0</restock>
<min>85</min>
<quantmin>20</quantmin>
<quantmax>70</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"/>
</type>
| Setting | What it does |
name | The item's class name, exactly as the game or mod defines it. |
nominal | How many of the item the economy aims to have on the map. |
min | When the count drops below this, the item starts respawning up to nominal. |
lifetime | Seconds an untouched item stays on the ground before it is cleaned up. |
restock | Seconds to wait before respawning the item. 0 respawns as soon as needed. |
quantmin / quantmax | How full the item spawns, in percent (for example water or ammo). -1 for items without a quantity. |
cost | Spawn priority. Leave it at 100. |
flags | Which copies count towards nominal: on the map, in cargo, in players' inventories, in stashes. |
category | The kind of loot spot it uses: tools, weapons, clothes, food, containers, explosives. |
usage | The building types it spawns in, for example Military, Police, Hunting, Industrial, Town, Village, Farm. |
value | The map tiers it spawns in: Tier1 (lowest, the coast on Chernarus) to Tier4 (highest), or Unique. |
tag | Where in the building: floor, shelves or ground. |
Give every mod item at least a category and a usage, so the economy knows where to place it. The quickest way is to copy the entry of a similar vanilla item and change the name.
Add mod loot with your own types file (recommended)
Keeping mod loot in a separate file means DayZ updates and mission updates don't overwrite it, and you can see at a glance what you added.
- Press STOP.
- In your mission folder, create a folder called
custom, for examplempmissions/dayzOffline.chernarusplus/custom. - Create a file in it, for example
types_mymod.xml, with your mod's entries inside a<types>block:<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <types> <type name="MyMod_Backpack"> <nominal>10</nominal> <lifetime>14400</lifetime> <restock>0</restock> <min>5</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="clothes"/> <usage name="Military"/> <value name="Tier3"/> <value name="Tier4"/> </type> </types> - Open
cfgeconomycore.xmlin the root of the mission folder and add this just before the closing</economycore>tag:<ce folder="custom"> <file name="types_mymod.xml" type="types" /> </ce> - Check both files with the XML Validator in the game panel.
- Press START.
Got more mods? Add one <file> line per types file inside the same <ce> block.
Or add it straight to types.xml
- Press STOP.
- Open
db/types.xmlin your mission folder. - Paste the mod's
<type>entries just above the closing</types>tag at the end of the file. - Check the file with the XML Validator, then press START.
A DayZ or mission update can replace types.xml and wipe your additions. Keep a copy, or use your own types file as shown above. Don't list the same item in two files.
Test your changes
- Watch the start-up in the Web Console and check the Log Viewer for warnings about your loot files or unknown class names.
- Join the server and explore to see if your loot changes have taken effect. It may take some time for items to respawn according to the new settings.
- Adjust as needed: fine-tune
nominal,minand the spawn places based on player feedback and the balance you want on your server.
No loot at all after your edit? One broken tag can stop the whole economy. See How to fix no loot or zombies spawning.
Questions
Do I need a DayZ loot editor to add modded loot?
No. types.xml is a plain XML file, so any text or XML editor works as your DayZ loot editor: the File Manager in the game panel, or Notepad++ or Visual Studio Code over SFTP. Community-made loot editors exist too. Whatever you use, check the result with the XML Validator before you start the server.
Why doesn't my modded item spawn?
Check that the mod is loaded on the server, that the class name matches exactly (including capitals), that nominal and min are above 0, and that the item has a category and usage that exist on your map. If you use your own types file, check it is listed in cfgeconomycore.xml.
How do I make loot stay on the ground longer?
Raise the item's lifetime value in seconds. Our guide on increasing the lifetime of your loot explains it step by step.
Do I need to wipe the server after changing loot?
No. Restart the server and the economy works towards the new values over time. Items already on the map stay until they are picked up or their lifetime runs out.
Related guides
Stuck with your loot files? Open a support ticket and we'll help.
