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§
- block
- Implement minecraft block and string id parsing
- error
- Errors in loading, saving and manipulating
- old_
block - Number id parsing
- region
- Implement region, entity, block entity and pending ticks
- schem
- Implement metadata, schematics and loading/saving
- world
Macros§
- unwrap_
opt_ tag - 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_
tag - Unwrap a
Value
as some type, otherwise returnErr(Error::TagTypeMismatch)
.
Enums§
- Schem
Format - Format of known schematics
Type Aliases§
- Block
Block
is a type of block with namespace and properties(aka attributes) in MC.- Block
Entity - Block entity(also known as tile entity) in MC, like chest, furnace, etc.
- Common
Block - Enumerate common blocks
- Data
Version - Minecraft data versions.
- Entity
- An entity in MC, like zombie, minecart, etc.
- Error
- Errors when loading and saving schematic
- Litematica
Load Option - Options to load litematica
- Litematica
Save Option - Options to save litematica
- Meta
DataIR - Intermediate representation via different metadata formats
- Pending
Tick - A tick waiting to be processed
- Region
- Region is a 3d area in Minecraft, containing blocks and entities.
- Schem
Slice - A 3d slice of schematic
- Schematic
- Schematic is part of a Minecraft world, like
.litematic
of litematica mod,.schem
and.schematic
of world edit,.nbt
of vanilla structure. - Vanilla
Structure Load Option - Options to load vanilla structure
- Vanilla
Structure Save Option - Options to save vanilla structure
- World
Edit12 Load Option - Options to load litematica
- World
Edit13 Load Option - Options to load litematica
- World
Edit13 Save Option - Options to save world edit 1.13+