I intercept the FullChunkDataPacket from the server. How can I get chunk or some other data from this package and save them?
well, you can get X/Z coordinates with $fullChunkDataPacket->chunkX and $fullChunkDataPacket->chunkZ The $fullChunkDataPacket->data variable contains the results of https://github.com/pmmp/PocketMine-...c/pocketmine/level/format/Chunk.php#L921-L948 plus the tiles variable https://github.com/pmmp/PocketMine-.../level/format/io/ChunkRequestTask.php#L55-L60 here. Just invert those functions and you have the data back.