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 compressed NBT file.
Additional file raids_end.dat is stored in the data folder of end dimension folders, allowing for raids in other dimensions for villages in those dimensions.
Folder structure
NBT structure
- [NBT Compound / JSON Object]: The root tag.
- [NBT List / JSON Array] raids: List of compound tags including raid information.
- [NBT Compound / JSON Object]: A raid.
- [Int] id: The ID of the raid.
- [Byte] started: 1 or 0 (true/false). True if the raid has ever spawned a wave.
- [Byte] active: 1 or 0 (true/false). Whether the raid functionality is active.
- [Long] ticks_active: The timespan, in ticks, the raid has been going on for.
- [Int] raid_omen_level: The level of bad omen for the raid. Affects raider enchantments and the extra wave.
- [Int] groups_spawned: The number of waves that have spawned in the raid.
- [Int] cooldown_ticks: The timespan, in ticks, until the initial spawning of raiders.
- [Int] post_raid_ticks: The timespan, in ticks, after all the waves are cleared.
- [Float] total_health: The sum of maximum health of all the raiders in the current wave.
- [Int] group_count: The total number of waves in this raid.
- [String] status: The status of the raid.
- [Int Array] center: The position of the center of the raid, where raiders try to move to.
- [NBT List / JSON Array] heroes_of_the_village: A list of players who have killed raiders in the raid. Each of these players receives the hero of the village effect when the raid ends in a
victory status.
- [Int] next_id: The ID for the next raid to occur.
- [Int] tick: Internal clock.
History
Navigation