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.

Format Reading Writing
Sponge V1
Sponge V2 ⚠️
Sponge V3 ⚠️
MCEdit
  • ⚠️ Partial support, most notably tile/block entities and biomes are not supported.

Install

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

Maven Central 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.

import dev.flavored.bamboo.Schematic;
import dev.flavored.bamboo.SchematicReader;

public static void main(String[] args) {
    // ... after setting up an instance ...
    SchematicReader importer = new SchematicReader();
    Schematic schematic = importer.fromPath(new java.nio.Path("example.schem"));
    schematic.paste(instance, new Pos(0.0, 0.0, 0.0));
}

License

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

About

A dead simple schematic library for Minestom.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages