Utilties for converting images to and from Minecraft maps.
map2image
(ormap2img
/m2i
) converts a Minecraft map (in the form of amap_<#>.dat
file, which is located in thedata
folder of a Minecraft world) into a PNG, JPG, or BMP image, with a customizable integer scaling factor.- This currently uses data from 1.17.1 (DataVersion
2730
), so please open an issue if anything is incompatible with an older version. - The
image
crate supports more image types, so if there is one that it supports that you need as a supported format, please open an issue or a PR.
- This currently uses data from 1.17.1 (DataVersion
image2map
is TODO and will be completed soon(ish).
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.