» StandExport | The armorstand schematic plugin 1.0-BETA

Handle ArmorStands like schematics. Export ArmorStands as JSON file.

  1. DrDonald
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.8
    • 1.14
    Languages Supported:
    English
    »»»»»»»»»»»»»»»»»»»»»»»»•«««««««««««««««««««««««
    Contact / Kontakt:
    » DISCORD: DrDonald#7398 «

    »»»»»»»»»»»»»»»»»»»»»»»»•«««««««««««««««««««««««

    GERMANY × DE


    - ERKLÄRUNG -

    Mit diesem Plugin kannst du ganz einfach, ArmorStands als .json Datei speichern. Diese Datein kannst du dann verschicken oder beliebig in deiner Welt wieder einfügen.
    Außerdem ermöglicht dier dieses Plugin, sammlungen von ArmorStands zu erstellen.

    Die meisten Inhalte sind einstellbar.


    - BEFEHLE -
    /se wand | Mit diesem Befehl erhälst du das Haupt-Tool mit welchem du ArmroStands speichern kannst.
    /se list | Listet dir alle gespeicherten ArmorStands im plugins/StandExport/exports ordner auf.
    /se loaded | Zeigt alle geladenen ArmorStands.

    /se spawn <name> | Spawne einen abgespeicherten ArmorStand.
    > Dieser muss sich im plugins/StandExport/exports ordner befinden!
    /se load <name> | Lade einen abgespeicherten ArmorStand in den Zwischenspeicher.
    /se unload <name> | Entferne einen abgespeicherten ArmorStand aus dem Zwischenspeicher.
    /se clearcache | Leere den Zwischenspeicher.
    /se demo | Lade einen Demo ArmorStand in den Zwischen speicher.

    - BENUTZUNG -
    1. Gebe dir selbst das Tool mit /se wand.
    2. Klicke den gewünschten ArmorStand mit einem Rechtsklick an.
    3. Klicke auf das Buch um den Namen anzupassen.
    4. Klicke auf "Create export" um den ArmorStand zu speichern.

    Jetzt kann man den ArmorStand mit dem Befehl /se load <name> laden und mit /se spawn <name> belibig oft an jeder belibiegen Stelle einfügen.

    ENGLISH × EN

    - EXPLANATION -

    This plugin gives you the ability to save armorstands as a JSON file.
    These files can be shared with anybody and can be imported and pasted into any world.
    If you're a builder and you're decorating your maps with armorstands on a regular basis, this plugin is perfect for you. With this Plugin you can easily create schematic like armor stand libraries with reusable armor stands.

    Most of the content is configurable.

    - COMMANDS -
    /se wand | This command gets you the tool
    /se list | Lists all saved ArmorStands in the plugins/StandExport/exports folder.
    /se loaded | Shows all loaded ArmorStands.

    /se spawn <name> | Spawn a saved ArmorStand from the plugins/StandExport/exports folder.
    > Dieser muss sich im plugins/StandExport/exports ordner befinden!
    /se load <name> | Load a ArmorStand from the plugins/StandExport/exports folder into the cache.
    /se unload <name> | Remove a ArmorStand from the cache.
    /se clearcache | Clear the cache.
    /se demo | Load the demo armorstand into the cache.

    - USAGE -
    1. Get yourself the Tool with /se wand.
    2. Rightclick an armorstand with the tool.
    3. Click the book to give the save a name.
    4. Click "Create export" to save an ArmorStand.

    Now you can load an ArmorStand with the command /se load <name> and spawn it with /se spawn <name> at any possible position.



    DEVELOPER × DOCUMENTATION

    This resource also has an API.
    If you want to use the API, you don't need the plugin to be installed.
    If you use the API on a server where the Plugin isn't installed, make sure to extract the plugin into your jar.

    How to load an armorstand using the API:
    Code (Java):
            //Loading an armorstand

            //I recommend, creating one instance per plugin.
            final StandExportAPI standExportAPI = new StandExportAPI();

            final File savedArmorStand = new File("./stands/example.json");

            try {
               //If you don't need the armorstand to be cached you could also use standExportAPI#loadArmorStandNoCache(savedArmorStand, ...

                standExportAPI.loadArmorStand(savedArmorStand, exportedArmorStand -> {

                    final Location location = player.getLocation();

                    //Spawn a new copy of the saved armorstand at location.
                    exportedArmorStand.spawnAt(location);
             
                });
            } catch (ArmorStandNotFoundException exception) {
                exception.printStackTrace();
            }
    How to save an armorstand as JSON File:
    Code (Java):
            //Saving an armorstand as .json File.

            //I recommend, creating one instance per plugin.
            final StandExportAPI standExportAPI = new StandExportAPI();

            Entity example = null;

            final ArmorStand armorStand = (ArmorStand)example;

            final ExportedArmorStand exportedArmorStand = new ExportedArmorStand(armorStand);

            final File output = new File("examplesave.json");

            //Make sure, the output file exists!

            output.getParentFile().mkdirs();

            if(!output.exists()) {
                try {
                    output.createNewFile();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }

            //This saves the ExportedArmorStand as examplesave.json
            standExportAPI.saveExportedStand(exportedArmorStand, output);
    How to use the integrated EntityBuilder:
    Code (Java):
            //Using the integrated EntityBuilder

            //I recommend, only creating one instance per plugin
            final StandExportAPI standExportAPI = new StandExportAPI();

            final File file = new File("example.json");

            try {
                standExportAPI.loadArmorStand(file, (exportedArmorStand -> {

                    final Location location = player.getLocation();

                    exportedArmorStand.spawnAt(location, entityBuilder -> {

                        //Here you can modify the armorstand by using the entityBuilder.

                        //An example method...
                        entityBuilder.setInvulnerable(true);

                        //There are a bunch of methods. Actually everything you could possibly do with an ArmorStand
                    });
                }));
            } catch (ArmorStandNotFoundException e) {
                e.printStackTrace();
            }
    2020-06-22_00.16.15.png 2020-06-22_00.16.13.png 2020-06-22_00.16.12.png

    Please consider rating this resource.
    If you want to report bugs, please send me a direct message or contact me via Discord.