Coder Social home page Coder Social logo

hubtou / mca2nbt Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 2.0 10 KB

A simple utility to convert a Minecraft .mca region file to a directory containing an uncompressed NBT file for each of its chunks

License: BSD 3-Clause "New" or "Revised" License

Makefile 10.11% C 89.89%
minecraft mca-region chunk nbt-files mca mca-file

mca2nbt's Introduction

โš ๏ธ Due to Microsoft inept policy concerning Minecraft accounts I no longer have access to the game and thus won't maintain this software anymore

About mca2nbt

A simple utility to convert a Minecraft .mca region file (in anvil format) to a directory with the same basename containing an uncompressed NBT file for each of its chunks.

From this point, these NBT files can be processed with other external utilities, such as nbt2yaml (with the -n option).

I didn't need to build back an MCA file from these NBT files but this would be easy to do from here (especially as i saved the MCA header for this purpose)...

You might want to check my Minecraft Region Scanner utility which is way more powerful!

Installation

Typing "make install fullclean" should do it on a FreeBSD system.

Unlucky users of other operating systems might have to manually download a copy of zpipe from the following address: http://www.zlib.net/zpipe.c

Usage

$ cd world/region

$ mca2nbt *.mca

Versions and changelog

1.00 2014-05-05 Initial release

License

This open source software is distributed under a BSD license (see the "License" file for details).

Credits

This utility was made with information from the Minecraft wiki web site. Cf. http://minecraft.gamepedia.com/Region_file_format

(although the following information was misleading and according to my tests just wrong: "If you prefer to read Zlib-compressed chunk data with Deflate (RFC1951), just skip the first two bytes and leave off the last 4 bytes before decompressing.")

It includes code from the zpipe utility from Mark Adler Cf. http://en.wikipedia.org/wiki/Mark_Adler Cf. http://www.zlib.net/

Author

Hubert Tournier

5th May 2014

mca2nbt's People

Contributors

hubtou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.