I gladly present you my latest tool, the Minecraft Chunk Deleter. So, what does this tool do?
This tool is aimed for server owners and its purpose is to delete chunks which have no player-placed blocks on them and have simply been explored. It's really useful for big servers, since it allows chunk regeneration, especially when new updates come up and people want to explore new places, without having to move far from spawn once again, considering that places around spawn have been explored.
This tool comes with certain options, that are explained thoroughly below.
saveFolderLoc: The absolute path to the save folder of the world you wish this tool to operate on. (No whitespace is allowed!)
whitelistedBlockIDs: The block IDs that, when found, will mark the chunk as safe, hence that chunk will not be deleted during the phase of deletion. (e.g. minecraft:sand)
minY: The minimum Y value of the world to search for whitelisted block IDs, in order to mark the appropriate safe chunks. (Default: 0)
maxY: The maximum Y value of the world to search for whitelisted block IDs, in order to mark the appropriate safe chunks. (Default: 256)
radius: The radius around chunks which have whitelisted block IDs to mark as safe chunks. (Default: 1)
Configuration file format
The format of the options.txt file must be as follows, otherwise you will most likely corrupt your world. Which reminds me, MAKE A BACK UP OF THE WORLD BEFORE USING THIS TOOL. Also, do not use tabs. Do use spaces only!
# To make a comment, make sure the line starts with a '#'.
Place the 3 files in the same folder and run the run.bat file. Let it do its magic.
Make a back up of the world you use the tool on before running it!
Tabs are not allowed in the run.bat file, only spaces.
Seperate whitelisted block IDs with a comma. Block data cannot be determined and utilized! (yet..)
For Advanced users only: Allocate at least 2 gB of RAM in the batch file to make sure it doesn't run out of memory.
You can have as many Settings as you wish, in the options.txt file.
The world's absolute path may not contain any whitespace! (I'll fix this in the future)
How it works
Basically, it accesses the world files you have given, loads up the files into memory, reads them all one by one and searches all blocks of each chunk, checking if there are any whitelisted block IDs in them, between the minY and maxY. If so, it marks those chunks and their surrounding ones, based on the radius you have provided. Afterwards, it starts deleting. Before deleting a chunk, though, it checks to see if it's been marked as safe, and acts accordingly.
Add the ability to search for specific block data in blocks before marking chunks as safe.
This tool has been specially developed for the server MCLovers+. Here is the official link to download the tool. Not working? Here's a mirror download link.
World Size Fixer Tool
Run this tool after running the deleter. This basically cleans up the files that contain no chunks. Here's the link to it.
Thank you very much, and I really hope you use my tool. Don't forget to leave your feedback about the tool!
Hi, I am trying to clean my serverfile from paperspigot (only the overworld) and I figured, that wherever we built anything there will be atleast one crafting table. So I followed your instructions, changed whitelistID and absolute path. Chunks load perfectly, but they are not chosen to be deleted.