MCWorldTools
Useful tools for Minecraft worlds such as removing unused chunks and finding blocks, command blocks or entities.
Tested from 1.7.10 up to 1.18.1.
Installation
pip install mcworldtools
Usage
You can simply run the command mcworldtools in a Minecraft world folder.
The script will tell you the name of your Minecraft world and - if possible, it may not be in older versions - the Minecraft version of your world.
After that you can choose which tool you want to use by stating the number of the tool.
Further usage
mcworldtools [-h] [-w WORLD] [-t TOOL] [-o OUTPUT_FILE] [-f {json,yaml}] [--confirm]
Arguments:
-h --helpShow the help message and exit-w WORLD, --world WORLDUse a different world folder than the current working directory. You can provide this option multiple times for multiple words.-t TOOL, --tool TOOLChoose the tool to use beforehand.-o OUTPUT_FILE, --output-file OUTPUT_FILESelect a file to write the output statistics to.-f {json,yaml}, --output-format {json,yaml}The output file format. May bejson(default) oryaml.--confirmAutomatically confirm any confirmation requests.
Warning
Do NOT use these tools for a world that is currently opened (i.e. in Minecraft Singleplayer or by a Minecraft server). Doing so may lead to unintended consequences. I do NOT take any responsibility for your Minecraft world if you do that.