Kotlin/JS (and JavaScript in general) will stringify Floats/Doubles differently than on other targets, so make sure the TAG_Float and TAG_Double string representations are compatible with Minecraft's SNBT implementation.
For example, 10^100:
Java: 1.0E100
JavaScript: 1e+100
This applies to StringifiedNbt, and to NbtFloat/NbtDouble.toString()
Kotlin/JS (and JavaScript in general) will stringify Floats/Doubles differently than on other targets, so make sure the TAG_Float and TAG_Double string representations are compatible with Minecraft's SNBT implementation.
For example, 10^100:
1.0E100
1e+100
This applies to
StringifiedNbt
, and toNbtFloat
/NbtDouble.toString()