Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 897 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 897 Bytes

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.