Bamboo is a fast and lightweight schematic library for Minestom.
Bamboo is available on Maven Central. Replace <VERSION>
with the latest version.
dependencies {
implementation("dev.flavored:bamboo:<VERSION>")
}
The following example loads a schematic from a file, then pastes it into the instance
at a given position.
SchematicReader importer = new SchematicReader();
Schematic schematic = importer.fromPath(new java.nio.Path("example.schematic"));
schematic.paste(instance, new Pos(0.0, 0.0, 0.0));
Bamboo also supports loading schematics from an NBT compound tag or from an input stream.
importer.fromNBT(nbtCompound);
importer.fromStream(inputStream);
Bamboo is licensed under the MIT License. See the LICENSE file for more details.