TheFrozenFire/PHP-NBT-Decoder-Encoder — Issue #1: Cannot read Minecraft map_x.dat files, compound within compound unsupported?
Author: Kroc
Created: 2011-10-25 19:41:32+00:00
State: open

Hello sir. Thanks for your excellent script, it’s really helped me develop something quickly. I’m putting together a PHP script to generate custom Minecraft map items (map_X.dat) since Minecraft doesn’t have a means to write in books (yet).

Something is missing with the NBT encoder in that map_X.dat files won’t write. These data files have a root node with a nullstring name, with the data element within. I think your NBT class doesn’t support compound elements within compound elements. Try loading a Minecraft map item file and then saving it straight back to see.