Raids.dat format

The raids.dat file located in the data folder of every Minecraft level is used to store information about the raids in the level. It is stored as a GZip'd NBT file.

Additional files raids_nether.dat and raids_end.dat are stored in the data folder of respective dimension folders, allowing for raids in other dimensions for villages in those dimensions. {| data-description="List"

Folder Structure

 * (world save directory)
 * data
 * raids.dat
 * DIM1
 * data
 * raids_nether.dat
 * DIM-1
 * data
 * raids_end.dat
 * data
 * raids_end.dat
 * }

NBT Structure

 * : The root tag.
 * : The ID for the next raid that will happen.
 * : List of compound tags including raid information.
 * : A raid.
 * : 1 or 0 (true/false). Whether the raid functionality is active.
 * : The level of bad omen for the raid. Affects raider enchantments and the extra wave.
 * : The x position of the center of the raid, where raiders try to move to.
 * : The y position of the center of the raid, where raiders try to move to.
 * : The z position of the center of the raid, where raiders try to move to.
 * : The number of waves that have spawned in the raid.
 * : A list of players that have killed raiders in the raid. Will receive the heroes of village effect when the raid ends in a  status.
 * : An entry containing the Universally Unique Identifier of a player.
 * : Least significant bits of the Universally Unique Identifier of the player, to be joined with  to form the player's unique ID.
 * : Most significant bits of the Universally Unique Identifier of the player, to be joined with  to form the player's unique ID.
 * : The ID of the raid.
 * : The total number of waves in this raid.
 * : The timespan, in ticks, until the initial spawning of raiders.
 * : The timespan, in ticks, after all the waves are cleared.
 * : 1 or 0 (true/false). True if the raid has ever spawned a wave.
 * : The status of the raid.
 * : The timespan, in ticks, the raid has been going on for.
 * : The sum of maximum health of all the raiders in the current wave.
 * : Internal clock.

History
Format raids.dat