raids.dat format
Jump to navigation
Jump to search
This feature is exclusive to Java Edition.
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
[edit | edit source]
|
NBT structure
[edit | edit source]- [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
victorystatus.- [Int Array]: An array of four integers containing the Universally Unique Identifier of a player.
- [NBT Compound / JSON Object]: A raid.
- [Int] next_id: The ID for the next raid to occur.
- [Int] tick: Internal clock.
- [NBT List / JSON Array] raids: List of compound tags including raid information.
History
[edit | edit source]| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.14 | 18w47a | Added raid data for all dimensions. | |||||
| 19w13a | Added HeroesOfTheVillage list. | ||||||
| 1.16 | 1.16-pre3 | The data file for the nether, raids_nether.dat was renamed to raids.dat. | |||||
| 1.21.5 | ? | Renamed all data file fields to lowercase underscore format. | |||||