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
-
mc_schem
(rlib)The main rust lib
-
mc_schem
(cdylib)C ffi for mc_schem
-
mc_schem C++ wrapper
A header-only c++ wrapper based on C ffi of mc_schem
-
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>
orOption<&mut Value>
as some type, if the option isNone
, returnsErr(Error::TagMissing)
. If the option is not none, but the type doesn’t match, returnsErr(Error::TagTypeMismatch)
. - Unwrap a
Value
as some type, otherwise returnErr(Error::TagTypeMismatch)
.
Enums§
- Format of known schematics
Type Aliases§
Block
is a type of block with namespace and properties(aka attributes) in MC.- Block entity(also known as tile entity) in MC, like chest, furnace, etc.
- Enumerate common blocks
- Minecraft data versions.
- An entity in MC, like zombie, minecart, etc.
- Errors when loading and saving schematic
- Options to load litematica
- Options to save litematica
- Intermediate representation via different metadata formats
- A tick waiting to be processed
- Region is a 3d area in Minecraft, containing blocks and entities.
- A 3d slice of schematic
- Schematic is part of a Minecraft world, like
.litematic
of litematica mod,.schem
and.schematic
of world edit,.nbt
of vanilla structure. - Options to load vanilla structure
- Options to save vanilla structure
- Options to load litematica
- Options to load litematica
- Options to save world edit 1.13+