Sueta

SchematicAPI [1.8]

1.0

Compact, easy-to-use schematic plugin with API

·Plugin

SchematicAPI:

Features:

- Very simple to use
- You can configure how many blocks are changed per tick to avoid server lag
- Very easy developer API (perfect for minigames, example *link soon*)
- Possibility to add locations to a schematic
- All entities are supported
- Most (FastAsync)WorldEdit schematics are supported
- OpenSource

Commands:

/schematic pos1/pos2 | schematicapi.pos | Select a region
/schematic save <name> | schematicapi.save | Save a selected region into a schematic
/schematic paste <schematic> | schematic.paste | Paste schematic from plugin folder
/schematic list | schematicapi.list | List schematics in plugin folder
/schematic addlocation <key> | schematicapi.addlocation | Add location to schematic
/schematic removelocation <key>| schematicapi.removelocation | Remove location from schematic
/schematic showlocations | schematicapi.showlocations | Show added locations

Permissions: schematicapi.<command>

Developer Infos:

Paste a schematic
public void pasteSchematicExample(Player player) {
        Location pasteLocation = player.getLocation();
        File schematicFile = new File("map.schematic");
        try {
            Schematic schematic = new Schematic(schematicFile);
            schematic.paste(pasteLocation, BLOCKS_PER_TICK, (Long time) -> {
                player.sendMessage("Schematic pasted in " + time + " ms");
            });
            List<Location> spawns = schematic.getConvertedLocation("spawns", pasteLocation);
        } catch (IOException ex) {
            player.sendMessage("Error while pasting schematic");
        }
    }



Additional Infos:

When informing me about bugs, always attach a server log, otherwise I often can't help you.

Similar projects

Plugin →