nbt2json
nbt2json copied to clipboard
Support new tag: Tag_Long_Array
Added in Java 1.12: https://minecraft.gamepedia.com/NBT_format Id = 12, I don't see it implemented
Good find, thanks. Been very busy at work the past few weeks but should have some time to look at this. Shouldn't be hard to add.
Give the latest release v0.3.0 a try. It should fix the NaN handling, and I implemented the long/int64 array for tag ID 12, although I didn't have a sample to test it on.
Me neither :) Remind me in a couple of weeks.
NAN sample uploaded here: https://github.com/VADemon/nbd/blob/sample-nan/test/Player-nan-value.dat
EDIT, 2020: NAN works, I couldn't find a TAG_LONG_ARRAY example from Minecraft. And NBTExplorer doesn't appear to write correct ones? Hm.
May 2020 update: I think this feature was added back in August in v0.3.0, but there doesn't seem to be any long array values in use in Minecraft to test against.
I'll leave the issue open until we can verify it or until I get tired of looking at it and decide if we can't test for failure then it must be good.
Edit: For the forthcoming v0.4.0, long lists have been converted (along with longs) to high-32/low-32 pairs of numbers, and tests are in place to validate conversion and round-trip conversions. But still no real world data to test against.