Skip to content

Instantly share code, notes, and snippets.

@reedacartwright
Last active January 28, 2023 03:44
Show Gist options
  • Save reedacartwright/47b1cdfc8b8f4154e5e321f1a80a0171 to your computer and use it in GitHub Desktop.
Save reedacartwright/47b1cdfc8b8f4154e5e321f1a80a0171 to your computer and use it in GitHub Desktop.
Using mcberepair to Reset the Nether

This tutorial is for Minecraft Bedrock Edition worlds that have been imported to a Windows 10 copy of the game. It will work with XBox, Android, PS4, etc. worlds, but they must be first copied to a Windows installation.

Download the following two files.

Place busybox64.exe in your minecraftWorlds directory. This is located at %LOCALAPPDATA%\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\minecraftWorlds. Unzip mcberepair-0.2.0-win64.zip and place the contents of mcberepair-0.2.0-win64\bin into the minecraftWorlds directory. (It's not strictly neccessary to place these files in minecraftWorlds directory, but it makes things easier.)

Open a windows command prompt (cmd) and run the following commands.

cd %LOCALAPPDATA%\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\minecraftWorlds
.\busybox64.exe sh

This will open up a Unix shell command line in your minecraftWorlds directory. rom here you canuse mcberepair and awk together to accomplish some cool things. The following set of commands will delete all the chunk data from the Nether and information about the location of Nether portal exits.

Note: replace t5BPXQwUAQA= with the directory for the world you want to edit.

./mcberepair.exe listkeys t5BPXQwUAQA= > list.tsv
awk '$5 == 1 {print $1}' list.tsv > netherkeys.txt

./mcberepair.exe rmkeys t5BPXQwUAQA= < netherkeys.txt
./mcberepair.exe rmkeys t5BPXQwUAQA= portals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment