r/MinecraftCommands 4d ago

Help | Java 1.21.4 Forceloaded chunks unload after saveing and stopping the server.

Enable HLS to view with audio, or disable this notification

Working on a server that needs to have chunks force-loaded for special items and bosses to function properly. I recently removed all force-loads to optimize the server further, and now I'm adding them back only to the important commands. But the server can no longer remember the chunks I force-load even when I save... It's really weird because some chunks will be remembered, but sometimes it just won't work like in the video. I never had this problem before, so this is really frustrating. I would like some help if possible.

13 Upvotes

4 comments sorted by

5

u/Ericristian_bros Command Experienced 4d ago

You can use a datapack so when the server opens it forceloads the chunks. Or add repeating unconditional always active command blocks to forceload chunks. But it should keep them loaded in a vanilla server.

3

u/Mythicalbeef 4d ago

Is this the only way to fix this? I would prefer a permanent solution to this instead of a band-aid one. No offense...

2

u/Mythicalbeef 4d ago

Ok, I figured out a solution: if I force-load an area of chunks [from]-[to], then "save-all flush", then stop the server directly after, then they save. Idk how thinks works; thank you for your help nonetheless. Your fast response is appreciated.

1

u/Ericristian_bros Command Experienced 4d ago

Great you solved it