How To Edit Dayz Loot Table
Here we have a beginner-friendly guide on How To Edit Dayz Loot Table with the .xml
files to customize things like loot tables, spawn rates, and other gameplay aspects. This is primarily geared towards community/private server admins.
🛠️ What You’ll Need
- Access to your server files
- Either through a hosting provider (like Nitrado, GTXGaming, etc.) or direct file access (for locally hosted servers).
- A text editor
- Basic knowledge of XML structure
- It’s a markup language—like HTML—where data is nested in tags.
📁 Important .xml
Files to Know
These are usually located in:
/mpmissions/dayzOffline.chernarusplus/
File Name | Purpose |
---|---|
types.xml | Controls loot item spawn rates and categories |
cfgspawnabletypes.xml | Defines what attachments spawn on weapons/gear |
eventspawns.xml | Controls where zombies/animals spawn |
events.xml | Defines spawn events (what types of loot/AI spawn) |
cfgeventspawns.xml | Custom spawn zones for events |
globals.xml | Day length, weather, lighting |
db\events.xml | Secondary event config, used by some hosts |
🧰 Editing the Loot Table (types.xml
)
📄 File: types.xml
Each item in the game is defined in a block like this:
<type name="AKM">
<nominal>10</nominal>
<lifetime>7200</lifetime>
<restock>1800</restock>
<min>2</min>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="1" count_in_hoarder="1" count_in_map="1" count_in_player="1"/>
<category name="weapons"/>
<usage name="Military"/>
</type>
🔍 Key Tags Explained
<nominal>
: Target count the game tries to maintain on the map.<lifetime>
: How long (in seconds) the item lasts in the world before despawning.<restock>
: Time before loot respawns in a loot location.<min>
: Minimum number of items always present.<category>
: Determines the item type (e.g., weapons, containers).<usage>
: Where it spawns (Military, Industrial, Town, etc.).
✏️ Example Edits
Increase AKM spawn rate:
<nominal>10</nominal> ➡️ <nominal>30</nominal>
Prevent AKMs from spawning:
<nominal>0</nominal>
🔧 Editing Spawnable Attachments (cfgspawnabletypes.xml
)
Controls attachments that can spawn with gear and weapons.
Example:
<type name="AKM">
<attachments chance="1.00">
<attachment name="Mag_AKM_30Rnd"/>
<attachment name="AK_WoodHndgrd"/>
<attachment name="AK_WoodBttstck"/>
</attachments>
</type>
chance="1.00"
= 100% chance to spawn with attachments- Remove or add attachment names to customize what spawns with what.
🔄 Changing Where Loot Spawns (events.xml
+ cfgeventspawns.xml
)
File: events.xml
This sets event types like loot or infected.
Example:
<event name="LootMilitary">
<nominal>200</nominal>
<min>50</min>
<max>400</max>
<lifetime>7200</lifetime>
<restock>900</restock>
<saferadius>100</saferadius>
<distanceradius>30</distanceradius>
<cleanupradius>100</cleanupradius>
<flags deletable="1" init_random="0" remove_damaged="0"/>
<position>fixed</position>
<limit>custom</limit>
<active>1</active>
<children>
<child lootmax="10" lootmin="5" name="Military"/>
</children>
</event>
- Adjust
<nominal>
to spawn more/less loot. <lifetime>
in seconds.<position>
can befixed
orrandom
.
🌦️ Optional: Adjust Global Settings (globals.xml
)
- Set day/night cycle speed
- Weather frequency
- Player spawn health/thirst/hunger
Example snippet:
<economy>
<timeAcceleration>6</timeAcceleration>
<timeNightAcceleration>12</timeNightAcceleration>
</economy>
✅ Tips Before You Save
- Always make a backup before editing.
- Use a validator like XML Validator to check for syntax errors.
- After saving, restart your server for changes to take effect.
- Some hosts require you to “import custom types” or use their config editor.
🧪 Testing Changes
- Join your server.
- Use admin tools (like CF Tools or VPPAdmin) to check loot spawns.
- Try using commands like:
#clearmap
To reset loot and force respawns.
Make sure to check out our guide on how to install a DayZ server to a VPS
