Skip to content

juke32/nbtparsedat.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python NBT Data and Log Parser + Extractor (nbtdatparse.py)

scanning non-corrupt .minecraft with nbtdatparse-v3.py image

scanning 20,000+ recovered .dat files with older nbtdatparse version (will update this photo soon) image This script scans minecraft data and log files for minecraft seeds. My use case is finding the seed to my minecraft world I deleted 13 years ago. I also wiped the drive at least once :)

  • Short guide for DMDE minecraft .dat / .log.gz file recovery using scan signatures. (DMDE is free software that can recover up to 4000 files, one directory at a time)
  • what is a level.dat file

nbtdatparse.py retrieves:

  • file name
  • seed
  • playtime
  • generator used
  • level name
  • game mode
  • spawn location
  • file path
  • version
  • last played
  • searches logs for instances of 'seed'

0. Download my .py file

place file in good location

1. Install Python

3.8 and 3.11 worked for me, each on a seperate machine

2. Install Required Libraries

install the libraries to the interpreter / version of python that runs the code

  • nbtlib
    pip install nbtlib
    
  • openpyxl
    pip install openpyxl
    

3. Set directory_path for scanning and output of minecraft_worlds_recovery.xlsx - not optional

  • current examples: D:/dump & C:/Users/juke32/AppData/Roaming/.minecraft/saves

4. Should be good to run!

If it doesn't work double check the file path, direction of the slashes, if the correct python interpreter is used, try using a terminal window not an ide or coding enviroment.

5. Sorting through the .xlsx in excel

  1. Highlight the top title row of the data in any tab
  • Click sort and filter
  • Select filter
  1. The top row should now have dropdown arrows, select and sort however you need
  2. If you uncheck errors/seeds/info you already know about, you can reduce the clutter I didn't code out

https://mcseedmap.net is very helpful

About

Minecraft NBT Data Extractor and Seed Hunter - Parse and search thousands of minecraft .dat files at the same time for deep seed finding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages