Pasting Schematic file to a Location. (Please Help!)

Discussion in 'Plugin Development' started by finalblade1234, Mar 7, 2013.

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

    finalblade1234

    how do i Paste Schematic file to a Location? Such as (50,10,50)
    I am clueless...
     
  2. It's complicated to do on your own because you need to read the file manually, store the blocks then asign them to locations...

    Instead you should look into WorldEdit's API for this, it should have pretty self-explainatory methods.

    Also, this was asked alot of times before, you should search :p
     
  3. Offline

    microgeek

    If I remember correctly, schematics where just XML files. Get a parser, read the data, make a array of objects(Object should contain block id, position, ect.), then get the relative position of the player and change the blocks.
     
  4. Offline

    ZeusAllMighty11

    WorldEdit has a pretty simple API to use, try using the search function on our forums if you decide to do that.
     
  5. They're in NBT format and compressed actually.
    http://www.minecraftwiki.net/wiki/Schematic_file_format

    It's easier to just use the WorldEdit API which has a good tested parser for those files.
     
  6. Offline

    microgeek

Thread Status:
Not open for further replies.

Share This Page