Updated 15 October 2026
When a rifle spawns with a scope, or a backpack with something inside, that comes from cfgspawnabletypes.xml in the mission folder. Each entry names an item and lists what can spawn on it or in it.
The free cfgspawnabletypes Generator builds these entries for you, starting from the vanilla entry or your own file. For cars and trucks, the Vehicle Builder sets every wheel, door and engine part in one go.
How an entry works
- <type name="…">: the item the rules are for, by class name. The item reference lists every vanilla class name and what it spawns with, such as the AKM.
- <attachments>: things that attach to it, such as optics, magazines or a suppressor, each with a chance.
- <cargo>: things that spawn inside it.
- chance: from 0 to 1, so 0.25 is a 25% chance.
- preset="…": picks from a named list in
cfgrandompresets.xmlinstead of listing items here. - damage: how damaged the item spawns.
Change what spawns with an item
- Download
cfgspawnabletypes.xmlfrom the mission folder and keep a copy. - Find the item's
<type>entry, or add one, and change the chances or the listed items. - Check the file with the free DayZ XML validator before you upload it, then restart.
Class names must be spelled exactly, and attachments must fit the item, or they simply don't appear.
Editing with Law's KillFeed
On Xbox and PlayStation servers, the dashboard's Server Files page opens cfgspawnabletypes.xml in an easy editor on the paid plan, with chance sliders, presets, a damage slider and suggestions for what usually goes with an item.