Creating NBT file from plugin - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Creating NBT file from plugin (/thread-1264.html) |
Creating NBT file from plugin - SamJBarney - 11-10-2013 Out of curiosity, is it possible to create an NBT file from inside a plugin? If so, what classes should I be looking at? RE: Creating NBT file from plugin - NiLSPACE - 11-10-2013 I don't think it is possible atm to create an NBT file from a plugin. RE: Creating NBT file from plugin - xoft - 11-10-2013 It is not possible. If you'd like, you might want to explore the cFastNBTWriter and cParsedNBT classes, if their interface is exportable to Lua (but I doubt it); and anyway NBT files are usually compressed with gzip or zlib, too, so that would take some extra handling. Note, however, that there's one exception to this. MCServer plugins can read and write .schematic files, which are NBT inside. Use the cBlockArea class for that: http://mc-server.xoft.cz/LuaAPI/cBlockArea.html |