Mineuniverse

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…

2 min read Updated
Java Edition Java Edition technical Illager mechanics Development
Advertisement Remove ads with Premium →
Contents (4)
  1. Folder structure
  2. Current
  3. NBT structure
  4. History
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

Current

  • File directory.png: Sprite image for directory in Minecraft: A world directory.
    • File directory.png: Sprite image for directory in Minecraft dimensions
      • File directory.png: Sprite image for directory in Minecraft <namespace>: Namespace of a defined dimension.
        • File directory.png: Sprite image for directory in Minecraft <path>: Path of a defined dimension.
          • File directory.png: Sprite image for directory in Minecraft data: Miscellaneous data of the dimension.
            • File file.png: Sprite image for file in Minecraft raids.dat: Stores information about the ongoing raids in this dimension.

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

Java Edition
1.1418w47a Added raid data for all dimensions.
19w13a Added HeroesOfTheVillage list.
1.161.16-pre3 The data file for the nether, raids_nether.dat was renamed to raids.dat.
1.21.525w05a Renamed all data file fields to lowercase underscore format.
26.1snapshot 1 Changed world directory structure
Advertisement Remove ads with Premium →

More in Java Edition

View all 57 →
Phantom FramesPhantom FramesPhantom Frames is a tie-in DLC to The Garden Awakens, released under the Expect the unexpected campaign, as both an add-on for Bedrock Edition and a data…Potato OilPotato OilPotato oil is a joke item exclusive to 24w14potato.Potion of LuckPotion of LuckA potion of Luck is a potion that provides Luck when used.Projected Random Patchy SquareA projected random patchy square generates a square where each block is randomly or not randomly placed with its probability based on the distance from…Random Boolean SelectorRandom boolean selector is a technical feature that randomly chooses between two features with equal probability.Random SelectorRandom selector is a technical feature that randomly chooses a feature from a list with chances.Realms Celebration MapRealms Celebration MapRealms Celebration Map is a Marketplace map, designed to be used by subscribers of Realms. The player is placed in a world composed of many minigames…Redstone mechanicsRedstone mechanics describe the general concepts of redstone power, and how redstone-related blocks interact with one another. This article describes…
Explore the Minecraft Wiki
Blocks, items, mobs, biomes and game mechanics — all in one place.
Wiki home