mc_schem

Crates.iomc_schem
lib.rsmc_schem
version1.1.2
sourcesrc
created_at2024-02-26 06:30:22.638134
updated_at2024-04-25 05:09:57.069809
descriptionA library to read, create, modify and write various Minecraft schematic files
homepagehttps://github.com/SlopeCraft/mc_schem
repositoryhttps://github.com/SlopeCraft/mc_schem
max_upload_size
id1153072
size667,148
Joseph Liu (ToKiNoBug)

documentation

README

mc_schem

A rust library to generate, load, manipulate and save minecraft schematic files.

Supported formats

Format Extension Load Save
Litematica .litematica
Vanilla structure .nbt
WorldEdit schem (1.13+) .schem
WorldEdit schem (1.12-) .schematic

Contents

  1. mc_schem (rlib)

    The main rust lib

  2. mc_schem (cdylib)

    C ffi for mc_schem

  3. mc_schem C++ wrapper

    A header-only c++ wrapper based on C ffi of mc_schem

  4. schemtool (executable)

    An executable to do various manipulations on schematics

Build

  1. Build with cargo directly (no c/c++ files)

    cargo build # debug
    cargo build --release #release
    
  2. Build with cmake (with c/c++ files)

    mkdir build
    cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DMC_SCHEM_RUST_TARGET=default -DCMAKE_INSTALL_PREFIX=install
    cmake --build build --parallel
    cmake --install build
    
Commit count: 181

cargo fmt