Skip to content

Technerder/Scaffolding

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scaffolding

Scaffolding is a library for Minestom that allows you to load and place schematics.

This library is very early in development and has too many bugs to count. For your own safety, you should not use it in a production environment.

Usage

// Load a schematic from File.
public void method1() {
    Schematic schematic = Scaffolding.fromFile(new File("schematics/my_schematic.schematic"));
}

public void method2() {
    Schematic schematic = new SpongeSchematic();
    schematic.read(new FileInputStream(new File("schematics/my_schematic.schematic")));
}
// Place a schematic at a location.
Instance instance = player.getInstance();
Pos position = player.getPosition();
schematic.build(instance, position).thenRun(() -> player.sendMessage("Schematic placed!"));
// Write a schematic (SOONtm)
Region region = new Region(new Pos(0, 0, 0), new Pos(10, 10, 10));
Schematic schematic = new SpongeSchematic();
schematic.write(new FileOutputStream("schematics/my_schematic.schematic"), region);

Build Tools

Repository

<repository>
    <id>crystalgames</id>
    <url>https://repo.crystalgames.net/snapshots/</url>
</repository>

Dependency

<dependency>
    <groupId>net.crystalgames</groupId>
    <artifactId>Scaffolding</artifactId>
    <version>0.1.0-SNAPSHOT</version>
</dependency>

About

Schematic library for Minestom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%