Skip to content

mjdominus/nbt

Repository files navigation

Libraries for processing Minecraft's NBT files.

Details:
  https://minecraft.gamepedia.com/NBT_format

Immediate goal: Read a map file and dump out a PNG image
Details:
  https://minecraft.gamepedia.com/Map_item_format


To use:
  1. Copy map(s) from  MINECRAFT/saves/WORLD/data/map_*.dat
  2. Uncompress: gzip -dc map_123.dat > map_123.nbt
  3. Convert one map to pnm: dumpmap map_123.nbt > map_123.pnm
     Or to png: dumpmap map_123.nbt | pnmtopng > map_123.pnm
  4. Join many maps and convert:
     dumpmap $(sortbyscale map-files....) | pnmtopng > big-map.png


Blog post about this project:  https://blog.plover.com/games/minecraft-maps.html

About

Read and decode Minecrafts NBT files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages