Updated 12 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.
How an entry works
- <type name="…">: the item the rules are for, by class name.
- <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 File Checker 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.