Crate mc_schem

source ·
Expand description

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

§Supported formats:

  • 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

Modules§

  • Implement minecraft block and string id parsing
  • Errors in loading, saving and manipulating
  • Number id parsing
  • Implement region, entity, block entity and pending ticks
  • Implement metadata, schematics and loading/saving

Macros§

  • Unwrap a Option<&Value> or Option<&mut Value> as some type, if the option is None, returns Err(Error::TagMissing). If the option is not none, but the type doesn’t match, returns Err(Error::TagTypeMismatch).
  • Unwrap a Value as some type, otherwise return Err(Error::TagTypeMismatch).

Enums§

Type Aliases§