Skip to content

A dead simple schematic library for Minestom.

License

Notifications You must be signed in to change notification settings

AppleFlavored/bamboo

Repository files navigation

Bamboo

Bamboo is a fast and lightweight schematic library for Minestom.

Install

Bamboo is available on Maven Central. Replace <VERSION> with the latest version.

dependencies {
    implementation("dev.flavored:bamboo:<VERSION>")
}

Example

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);

License

Bamboo is licensed under the MIT License. See the LICENSE file for more details.