Choose what an item spawns with: the attachments, magazines and optics on a weapon, the cargo in a backpack, with a chance for each group. Start from Bohemia's vanilla entry or from your own cfgspawnabletypes.xml, and download a merged file or just your entries.

Add an item above. If it has a vanilla entry, or one in your file, it starts from that.

What cfgspawnabletypes.xml controls

When a rifle spawns with a scope, or a backpack with something inside, that comes from cfgspawnabletypes.xml in the root of the mission folder. Each <type name="…"> entry names an item by its class name and lists groups of things that can spawn on it (<attachments>) or in it (<cargo>).

  • A group's chance, from 0 to 1, is the chance it spawns at all. 0.25 is a 25% chance.
  • The <item> entries in a group are the candidates, each with its own chance.
  • preset="…" takes the items from a named list in cfgrandompresets.xml instead.
  • <damage min max> sets how damaged the item spawns, from 0 (pristine) to 1 (ruined).
  • <hoarder/> marks storage such as tents and barrels.

Class names must be spelled exactly, and attachments must fit the item, or they simply don't appear. The full walkthrough is in the guide DayZ cfgspawnabletypes.xml explained.

Add the entries to a Nitrado server

  1. Download cfgspawnabletypes.xml from your mission folder in the Nitrado file browser and keep an untouched copy.
  2. Open it here with "Open my cfgspawnabletypes.xml", add or change items and download the merged file.
  3. Upload it over the old one and restart the server.

On Xbox and PlayStation servers running Law's KillFeed, the dashboard's Server Files page opens, checks and uploads this file for you and keeps the last 15 versions; its easy editor with chance sliders is on the paid plan.

Questions

How do I make weapons spawn with a magazine?

Add the weapon, add an Attachments group with the chance you want, such as 0.5 for half the time, and put the magazine class in it. If the weapon already has an entry in your file, open your file first and import it, so you keep the optics and other attachments.

What does chance mean?

A number from 0 to 1. On a group it is the chance the group spawns at all, so 0.25 is a 25% chance. On an item inside a group it weighs that item against the others when one is picked.

What is a preset?

A named list in cfgrandompresets.xml, such as mixArmy or foodVillage. A group with a preset picks from that list instead of listing items here.

How do I add the result to my server?

Open your own cfgspawnabletypes.xml first, then download: the editor replaces the entries you changed, adds the new ones and keeps everything else as it was. Without your file it downloads just your entries, to paste in by hand.

Is my file uploaded anywhere?

No. Everything runs in your browser. The vanilla buttons load Bohemia's file straight from their public GitHub repository.

Does this work for Xbox and PlayStation servers?

Yes. cfgspawnabletypes.xml has the same format on Xbox, PlayStation and PC. It sits in the root of your mission folder.

// Workbench

More free tools

types.xml Editor

Search, edit and bulk-change the loot in your types.xml, with common mistakes flagged before you upload it.

types.xml Compare

Put two types.xml files side by side and see which items were added, removed or changed.

events.xml Editor

Change vehicles, helicopter crashes, animals and infected event by event, or scale a whole group at once.

cfggameplay.json Editor

Change base damage, stamina, building checks, hit indicators and map options with switches instead of JSON.

globals.xml Editor

Infected and animal caps, cleanup times, login timers and loot damage, with every value explained.

cfgweather.xml Editor

Set clouds, fog, rain, wind and lightning with sliders, or turn off fog and rain in one click.

Contaminated Zone Editor

See the gas zones in cfgEffectArea.json on the map, then add, move, resize or remove them.

messages.xml Generator

Build welcome messages, repeating notices and restart countdowns for your server and download the file.

Spawn Loadout Generator

Pick the starting clothes and items for fresh spawns and get a loadout file ready for cfggameplay.json.

Day & Night Calculator

Work out how long a day and a night last in real time from your server's time acceleration settings.

DayZ File Checker

Paste or open any DayZ XML or JSON file and find the exact line that would stop your server reading it.