Nucleation
Nucleation is a high-performance Minecraft schematic parser and utility library written in Rust, with WebAssembly and FFI bindings for multiple environments.
Features
- Parse and manipulate multiple schematic formats (.schematic, .litematic, etc.)
- High-performance Rust core with WebAssembly bindings
- Chunk-based loading for progressive rendering
- Block entity support (chests, signs, etc.)
- Designed for integration with Cubane for 3D visualization
Installation
Rust
JavaScript/TypeScript (via npm)
# or
Usage Examples
JavaScript (WebAssembly)
import from 'nucleation';
// Load a schematic file
const response = await ;
const fileData = ;
// Parse the schematic
const parser = ;
await parser.;
// Get schematic dimensions
const = parser.;
console.log;
// Load blocks progressively in chunks
const chunks = parser.;
// With Cubane integration
const renderer = ;
Rust
use SchematicParser;
Integration with Cubane
Nucleation works seamlessly with Cubane for 3D visualization, forming a complete solution for Minecraft schematic processing and rendering.
import from 'nucleation';
import from 'cubane';
// Parse schematic with Nucleation
const parser = ;
await parser.;
// Render with Cubane
const cubane = ;
// ... set up Three.js scene ...
// Load and render blocks
License
This project is available under the MIT or Apache-2.0 license.
Development
# Build the Rust library
# Build the WebAssembly package
# Run tests
Created and maintained by Nano