How to fix most chunk error/TileEntity problems

Oct 14, 2015
How to fix most chunk error/TileEntity problems

  • This article needs clean-up.
    This article is either unclear, poorly worded, or a bit disorganized. Help improve our wiki by clarifying this article!​
    It is recommended that you take backups before editing essential things! These methods should be used as a last resort and they will delete the chunk that the error is in! Anything and everything in that chunk will be deleted!

    An entire chunk is 16x16 that goes bedrock to sky limit.

    Before you do anything, shut down your server.

    Issue #1 (Chunk corruption):

    The error would look something like this:
    Code (Text):
    Attempted to place a tile entity ([email protected]) at 18732,8,9543 (AIR) where there was no entity tile!
    Chunk coordinates: 18720,9536
    java.lang.ClassCastException: net.minecraft.server.v1_7_R2.TileEntityComparator cannot be cast to net.minecraft.server.v1_7_R2.TileEntityChest
        at net.minecraft.server.v1_7_R2.TileEntityChest.i(TileEntityChest.java:208)
        at net.minecraft.server.v1_7_R2.TileEntityChest.h(TileEntityChest.java:254)
        at net.minecraft.server.v1_7_R2.World.tickEntities(World.java:1389)
        at net.minecraft.server.v1_7_R2.WorldServer.tickEntities(WorldServer.java:515)
        at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:678)
        at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:273)
        at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:568)
        at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:474)
        at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618)
    This will cause your server to crash

    How to solve this issue:

    1. Locate the region from your crash reports

    Go into your servers folder, and find the folder named 'Crash reports' and then open the latest crash report.

    [​IMG]

    This will show you info about the crash and error

    Make sure you look at the "Region: (36,18)" (Yours won't be the same!)

    2. Next we are going to go into the world file, find the corrupted file and then delete it. Go into your "World" directory then the "Region" /world/region/r.36.18.mca (36.18 is the one we are using in this example)

    [​IMG]

    Once in the "Region" dir find the file named the region that is causing the error
    [​IMG]

    3. After you delete the file you can start your server backup. The chunk will regenerate itself and no longer be corrupted


    Issue #2 (Chunk errors)

    For the next method this will only work on LINUX servers.

    1. You are going to login to your ssh for the user you made for your server.then just login and make sure you are at your home directory

    2. We are going to download the zip from the site. You will need the zip software on your server you can do any of the following:
    Code (Text):
    sudo yum install zip unzip -y or apt-get install unzip
    Then type
    Code (Text):
    wget https://github.com/Fenixin/Minecraft-Region-Fixer/archive/master.zip
    (someone please double check these codes)

    3. Unzip the file "unzip master.zip". It will extract a folder called "Minecraft-Region-Fixer-master"

    Read through the list of options you can do because you do not have to delete the chunk if you have a backup there is a bunch of options.

    There is a bunch or different things you can do here is a list:
    Code (Text):


    Options:
      --version             show program's version number and exit
      -h, --help            show this help message and exit
      -b <backups>, --backups=<backups>
                            List of backup directories of the Minecraft world to
                            use to fix corrupted chunks and/or wrong located
                            chunks. Warning! Region-Fixer is not going to check if
                            it's the same world, be careful! This argument can be
                            a comma separated list (but never with spaces between
                            elements!). This option can be only used scanning one
                            world.
      --replace-corrupted, --rc
                            Tries to replace the corrupted chunks using the backup
                            directories. This option can be only used scanning one
                            world.
      --replace-wrong-located, --rw
                            Tries to replace the wrong located chunks using the
                            backup directories. This option can be only used
                            scanning one world.
      --replace-entities, --re
                            Tries to replace the chunks with too many entities
                            using the backup directories. This option can be only
                            used scanning one world.
      --replace-shared-offset, --rs
                            Tries to replace the chunks with a shared offset using
                            the backup directories. This option can be only used
                            scanning one world.
      --replace-too-small, --rt
                            Tries to replace the region files that are too small
                            to be actually be a region file using the backup
                            directories. This option can be only used scanning one
                            world.
      --delete-corrupted, --dc
                            [WARNING!] This option deletes! This option will
                            delete all the corrupted chunks. Used with --replace-
                            corrupted or --replace-wrong-located it will delete
                            all the non-replaced chunks.
      --delete-wrong-located, --dw
                            [WARNING!] This option deletes! The same as --delete-
                            corrupted but for wrong located chunks
      --delete-entities, --de
                            [WARNING!] This option deletes! This option deletes
                            ALL the entities in chunks with more entities than
                            --entity-limit (300 by default). In a Minecraft
                            entities are mostly mobs and items dropped in the
                            grond, items in chests and other stuff won't be
                            touched. Read the README for more info. Region-Fixer
                            will delete the entities while scanning so you can
                            stop and resume the process
      --delete-shared-offset, --ds
                            [WARNING!] This option deletes! This option will
                            delete all the chunk with status shared offset. It
                            will remove the region header for the false chunk,
                            note that you don't loos any chunk doing this.
      --delete-too-small, --dt
                            [WARNING!] This option deletes! Removes any region
                            files found to be too small to actually be a region
                            file.
      --entity-limit=ENTITY_LIMIT, --el=ENTITY_LIMIT
                            Specify the limit for the --delete-entities option
                            (default = 300).
      -p PROCESSES, --processes=PROCESSES
                            Set the number of workers to use for scanning.
                            (defaulta = 1, not use multiprocessing at all)
      -v, --verbose         Don't use a progress bar, instead print a line per
                            scanned region file with results information. The
                            letters mean c: corrupted; w: wrong located; t: total
                            of chunksm; tme: too many entities problem
      -i, --interactive     Enter in interactive mode, where you can scan, see the
                            problems, and fix them in a terminal like mode
      -l SUMMARY, --log=SUMMARY
                            Saves a log of all the problems found in the spicifyed
                            file. The log file contains all the problems found
                            with this information: region file, chunk coordinates
                            and problem. Use '-' as name to show the log at the
                            end of the scan.
     


    5. Anyways we are going to use the Scan and delete. So type: "cd /Minecraft-Region-Fixer-master"
    then we are going to run the Scan and then Delete command line
    "python region-fixer.py --dc /home/username/WorldName"

    username= user that you are using to run your mc server
    WorldName = world that is messed up

    6. This will scan your world and tell you if their is something broken or if there is a corrupted chunk it will delete it.
  • Loading...
  • Loading...