Question(s) about shematics

Discussion in 'Plugin Development' started by AnniKa, Jul 20, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    AnniKa

    Hey, is there any easy to use stuff for loading and use those shematic files?
    Maybe some API or something that provides some functionally for them, or at least some usefull docs about them?
     
  2. Easiest way would be to hook into WorldEdit, granted it ties you to it but it's fairly easy then to load->paste->Copy->save via calls to it's classes.

    The other option you have is to get the JNBT library, which can read NBT files, and read up on the schematic format. http://www.minecraftwiki.net/wiki/Schematic_File_Format
     
  3. Offline

    desht

    I've just added some code to my ChessCraft plugin to hook into WorldEdit for the purposes of terrain saving/restoration. This version isn't released as a JAR yet, but you can look at the code on github: https://github.com/desht/ChessCraft

    In particular, look at TerrainBackup.java where the actual work is done, and ChessCraft.java where I set up the WorldEdit plugin.

    Hope this helps.
     
  4. Offline

    AnniKa

    okay thank you, i think this will help me :)
     
Thread Status:
Not open for further replies.

Share This Page