Schematic4j
Java parser for the .schem/.schematic/.litematic Minecraft formats. 🗺
Install / Use
/learn @SandroHc/Schematic4jREADME
Schematic4j
Java parser for the .schem/.schematic/.litematic Minecraft formats. 🗺
Supported formats
| Format | Extension | Links | |----------------------------|------------|--------------------------------------------------------------------------| | Sponge Schematic | .schem | Spec: v1 • v2 • v3 | | Litematica | .litematic | Spec • Discussion | | Schematica | .schematic | Spec |
Installation
Add the following dependency to your build file.
If using Gradle (build.gradle):
repositories {
mavenCentral()
}
dependencies {
implementation 'net.sandrohc:schematic4j:1.1.0'
}
If using Maven (pom.xml):
<dependency>
<groupId>net.sandrohc</groupId>
<artifactId>schematic4j</artifactId>
<version>1.1.0</version>
</dependency>
For development builds, please see: https://jitpack.io/#net.sandrohc/schematic4j
Usage
Here are some examples on how to use this library:
// Load schematic from a file.
// Currently supported formats include .schematic, .schem and .litematic.
Schematic schematic = SchematicLoader.load("/path/to/your.schematic");
schematic.name();
schematic.width();
schematic.height();
schematic.length();
schematic.block(0, 0, 0).name;
schematic.blocks().collect(Collectors.toList());
schematic.blockEntities().collect(Collectors.toList());
schematic.entities().collect(Collectors.toList());
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
