Saving a rendered map(item) to disk permanently

Discussion in 'Plugin Development' started by bobacadodl, Mar 12, 2013.

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


    So i've recently been experimenting with the map API and I'm creating a plugin that allows you to put an image on a map by typing in the image url. I know there are a few plugins that do this already but they work by saving the map id and re-rendering the image to the map every restart. This is inefficient, ugly & causes problems. I want to save maps permanently. Sort of like how this program works:
  2. Offline


    I think you need NMS metadata for that.
  3. Offline


    No ... I think i'll need to use NMS NBT classes to create & save the maps. I was just wondering if it was possible to do it using the bukkit map API
  4. Offline


    I presume you mean the ability to directly edit the (compressed) NBT files map_X.dat in world/data/? There's no Bukkit API for this; you'd need to write the code yourself. You can avoid a dependency on NMS if you pull in a separate NBT library - You'll also need since the .dat files are gzip'd, and then the docs in should have all the info you need.

    But are you sure this will be easier than using the Bukkit API?
    bobacadodl likes this.
Thread Status:
Not open for further replies.

Share This Page