Let's Fix Minecraft - Resetting Corrupted Chunks

Channel:
Subscribers:
194,000
Published on ● Video Link: https://www.youtube.com/watch?v=GCNt87ucYUw



Minecraft
Game:
Minecraft (2011)
Duration: 6:33
30,153 views
334


Too long, didn't watch? Scroll to bottom to see an abridged explanation.

This is a video explaining how to reset corrupted chunks on a minecraft server without losing the entire region. This will work for any Minecraft server using the Anchor format, including Tekkit and Feed the Beast.
It doesn't require world editors, this is all done by hand. Special thanks to Ripp_ from UKoE for telling me the maths on how to find the Chunk Header in the region file hex code.

STUFF YOU NEED:
Coordinate Tools (Dinnerbone), tells you which region file a chunk / block is in. http://dinnerbone.com/minecraft/tools/coordinates/

Header position equation:
4 * ((X mod 32) + (Y mod 32) * 32), where X and Y are the chunk coordinates. This can be plugged into Wolfram Alpha, as demonstrated in the video. Here is a direct link with the example I used, chunk is at -6,12.
http://www.wolframalpha.com/input/?i=+4+*+%28%28-6+mod+32%29+%2B+%2812+mod+32%29+*+32%29

HexEdit, a free Hex Editor for Windows. There is a mac equivalent called Hex Fiend- make sure to set it to OVERWRITE mode, Hex Edit is in overwrite by default.
http://www.hexedit.com/

Probable FAQs:
Yes this is a video about fixing a minecraft server, not a computer.
No I'm not going to become a Let's Play Channel.
Yes I am considering doing software repair videos, but since most of it happens on customer laptops, I haven't worked out the privacy part of it yet...

No I can't save your corrupted chunk. I guess you could use a world editor to hand-craft a chunk, save it, open it in a hex editor, copy the hex code to your corrupted region file and then save it- but you might as well just build it in the game. It's only a 16x16 space.

TL;DW version:
1. Observe server log and determine the coordinates of the broken chunk. Look for 'Wrong Location' severe errors.
2. Stop server, backup the world by copying the "world" folder in your MC server directory.
3. Use Dinnerbone Coord Tools to calculate what region the chunk is in from the coords you read from the log.
4. Open region file with a Hex Editor.
5. Plug the equation above into Wolfram Alpha to work out the hex position of the chunk header.
6. Overwrite the chunk header with zeros (00 00 00 00)
7. Save region file. Repeat as required.
8. Start taking regular backups.







Tags:
lets
fix
computers
minecraft
feed the beast
repair
broken
corrupted
chunk
region
world edit



Other Statistics

Minecraft Statistics For Adamant IT

There are 30,153 views in 1 video for Minecraft. Less than an hour worth of Minecraft videos were uploaded to his channel, less than 0.03% of the total video content that Adamant IT has uploaded to YouTube.