How to reproduce (output log)
Open a world, pause the game and look in the output log
❌ Notice there are error messages about saving
raids.dat
andrandom_sequences.dat
How to reproduce (raids not saving)
Find a village and give yourself the bad omen effect
/locate structure #minecraft:village /effect give @s minecraft:bad_omen
The raid boss bar appears
Leave and reopen the world
❌ Notice that the raid has vanished
Error message in the log
Could not save data cfi@342b30ad
java.nio.file.NoSuchFileException: C:\Users\Username\AppData\Roaming\.minecraft\saves\23w44a\DIM-1\data\raids.dat
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)
at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484)
at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
at sq.a(SourceFile:73)
at eec.a(SourceFile:45)
at een.b(SourceFile:122)
at java.base/java.util.HashMap.forEach(HashMap.java:1421)
at een.a(SourceFile:120)
at ami.au(SourceFile:822)
at ami.a(SourceFile:804)
at net.minecraft.server.MinecraftServer.a(SourceFile:541)
at net.minecraft.server.MinecraftServer.b(SourceFile:565)
at gfy.a(SourceFile:92)
at net.minecraft.server.MinecraftServer.w(SourceFile:682)
at net.minecraft.server.MinecraftServer.a(SourceFile:269)
at java.base/java.lang.Thread.run(Thread.java:833)
I'd suggest closing this as duplicate instead, it's caused by the same bit of code shown in that report.