Minecraft – Where does Minecraft store scoreboard objectives

minecraft-java-edition

After testing out a few datapacks, my Minecraft server is loaded with redundant scoreboard objectives that are no longer updated. I'm looking for a quick way to remove all at once, so I removed the scoreboard.dat file from my world and rebooted the server, but all objectives remain.

Therefore, my question: where are the scoreboard objectives stored in a Minecraft world?

Best Answer

The game stores the scoreboard data of a world into the scoreboard.dat file in the save folder of that world (as shown on the wiki: https://minecraft.gamepedia.com/Scoreboard#NBT_format).

I tried this myself by shutting down the server, deleting the file and activating the server again. The objective was removed once I did this, which makes me think your server was still running when you deleted the file. If that's the case, you need to shut the server down so that the objectives don't stay loaded in memory otherwise, the server will write them to the file again.