68 lines
3.6 KiB
Text
68 lines
3.6 KiB
Text
{{exclusive|java}}
|
|
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 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 ==
|
|
{| data-description="List"
|
|
|-
|
|
|<div class="toccolours treeview">
|
|
*''(world save directory)''
|
|
**data
|
|
***raids.dat
|
|
**DIM-1
|
|
***data
|
|
****raids.dat
|
|
**DIM1
|
|
***data
|
|
****raids_end.dat
|
|
</div>
|
|
|}
|
|
|
|
== NBT Structure ==
|
|
<div class="treeview">
|
|
* {{nbt|compound}}: The root tag.
|
|
**{{nbt|int|NextAvailableID}}: The ID for the next raid to occur.
|
|
** {{nbt|list|Raids}}: List of compound tags including raid information.
|
|
***{{nbt|compound}}: A raid.
|
|
****{{nbt|byte|Active}}: 1 or 0 (true/false). Whether the raid functionality is active.
|
|
**** {{nbt|int|BadOmenLevel}}: The level of bad omen for the raid. Affects raider enchantments and the extra wave.
|
|
**** {{nbt|int|CX}}: The x position of the center of the raid, where raiders try to move to.
|
|
**** {{nbt|int|CY}}: The y position of the center of the raid, where raiders try to move to.
|
|
**** {{nbt|int|CZ}}: The z position of the center of the raid, where raiders try to move to.
|
|
**** {{nbt|int|GroupsSpawned}}: The number of waves that have spawned in the raid.
|
|
**** {{nbt|list|HeroesOfTheVillage}}: A list of players who have killed raiders in the raid. Each of these players receives the [[Hero of the Village|hero of the village]] effect when the raid ends in a <code>victory</code> status.
|
|
*****{{nbt|compound}}: An entry containing the [http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html Universally Unique Identifier] of a player.
|
|
****** {{nbt|long|UUIDLeast}}: [https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html#getLeastSignificantBits-- Least significant bits] of the [http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html Universally Unique Identifier] of the player, to be joined with <code>UUIDMost</code> to form the player's unique ID.
|
|
****** {{nbt|long|UUIDMost}}: [https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html#getMostSignificantBits-- Most significant bits] of the [http://docs.oracle.com/javase/8/docs/api/java/util/UUID.html Universally Unique Identifier] of the player, to be joined with <code>UUIDLeast</code> to form the player's unique ID.
|
|
**** {{nbt|int|Id}}: The ID of the raid.
|
|
**** {{nbt|int|NumGroups}}: The total number of waves in this raid.
|
|
**** {{nbt|int|PreRaidTicks}}: The timespan, in ticks, until the initial spawning of raiders.
|
|
**** {{nbt|int|PostRaidTicks}}: The timespan, in ticks, after all the waves are cleared.
|
|
**** {{nbt|byte|Started}}: 1 or 0 (true/false). True if the raid has ever spawned a wave.
|
|
**** {{nbt|string|Status}}: The {{tooltip|status|ongoing, victory, loss, stopped}} of the raid.
|
|
**** {{nbt|long|TicksActive}}: The timespan, in ticks, the raid has been going on for.
|
|
**** {{nbt|float|TotalHealth}}: The sum of maximum health of all the raiders in the current wave.
|
|
** {{nbt|int|Tick}}: Internal clock.
|
|
</div>
|
|
|
|
== History ==
|
|
{{HistoryTable
|
|
|{{HistoryLine|java}}
|
|
|{{HistoryLine||1.14|dev=18w47a|Added [[raid]] data for all dimensions.}}
|
|
|{{HistoryLine|||dev=19w13a|Added <code>HeroesOfTheVillage</code> list.}}
|
|
|{{HistoryLine||1.16|dev=1.16-pre3|The data file for the [[nether]], <code>raids_nether.dat</code> was renamed to <code>raids.dat</code>.}}
|
|
}}
|
|
|
|
== Navigation ==
|
|
{{Navbox Java Edition technical|general}}
|
|
{{lowercase title}}
|
|
|
|
[[Category:Development]]
|
|
|
|
[[de:Überfalldaten]]
|
|
[[fr:Format raids.dat]]
|
|
[[ja:Raids.datフォーマット]]
|
|
[[lzh:Raids.dat範式]]
|
|
[[pt:Formato raids.dat]]
|
|
[[zh:Raids.dat格式]]
|