I've been looking for a way to load a schematic to a specific location using the WorldEdit API. I have come across this function in the WorldEdit documentation but Im not sure how to use it. Would anyone give me a suggestion? Or code examples. Code: load public abstract CuboidClipboard load(File file) throws IOException, DataException Loads a schematic from the given file into a CuboidClipboard Parameters: file - The file to load from Returns: The CuboidClipboard containing the contents of this schematic Throws: IOException - If an error occurs while reading data DataException - if data is not in the correct format
I don't get you: for people who host on their own computers? Explain yourself because WorldEdit and MCEdit can open the schematics.
@DocRedstone this might help: https://github.com/desht/ChessCraft...me/desht/chesscraft/blocks/TerrainBackup.java Obviously you'll need to adapt for your own needs, but it shows how to use the WorldEdit API to load & save schematics. I really need to get round to adding a post in the resources section on how to do this...
@DocRedstone Code:java private void loadArea(World world, File file,Vector origin) throws DataException, IOException, MaxChangedBlocksException{ EditSession es = new EditSession(new BukkitWorld(world), 999999999); CuboidClipboard cc = CuboidClipboard.loadSchematic(file); cc.paste(es, origin, false);} Where file is the schematic, and vector is the location where it should be pasted from.
This looks like it doesn't need WorldEdit. Do you happen to know how to save a schematic without worldedit?