Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HyperaDev/Scaffolding
Schematic library for Minestom
https://github.com/HyperaDev/Scaffolding
hacktoberfest minestom minestom-library
Last synced: 3 days ago
JSON representation
Schematic library for Minestom
- Host: GitHub
- URL: https://github.com/HyperaDev/Scaffolding
- Owner: HyperaDev
- License: mit
- Archived: true
- Created: 2021-12-22T10:22:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-27T13:01:12.000Z (over 1 year ago)
- Last Synced: 2024-08-04T00:12:54.230Z (3 months ago)
- Topics: hacktoberfest, minestom, minestom-library
- Language: Java
- Homepage:
- Size: 521 KB
- Stars: 21
- Watchers: 1
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-minestom - Scaffolding - Place and load schematics. (Libraries)
README
# Scaffolding
> **Warning** **This project is no longer maintained.**
> We will no longer be accepting pull requests, addressing issues or making any future releases.### Alternatives
- [com.github.hollow-cube.common:schem](https://github.com/hollow-cube/common/tree/main/modules/schem)
---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
```java
// 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")));
}
```
```java
// Place a schematic at a location.
Instance instance = player.getInstance();
Pos position = player.getPosition();
schematic.build(instance, position).thenRun(() -> player.sendMessage("Schematic placed!"));
```
```java
// 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
```xmlhypera-snapshots
https://repo.hypera.dev/snapshots/```
### Dependency
```xmldev.hypera
Scaffolding
0.1.1-SNAPSHOT```