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, allowing for raids in other dimensions for villages in those dimensions.

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).
 * : Optional. The x position of the center of the raid.
 * : Optional. The y position of the center of the raid.
 * : Optional. The z position of the center of the raid.
 * : The ID of the raid.
 * : 1 or 0 (true/false).
 * : 1 or 0 (true/false).
 * : 1 or 0 (true/false).
 * : Internal clock.
 * : 1 or 0 (true/false).
 * : Internal clock.
 * : 1 or 0 (true/false).
 * : Internal clock.
 * : Internal clock.
 * : Internal clock.