Integrated Dynamics

Integrated Dynamics

63M Downloads

Missing NBT listDouble, listFloat and listString operators

jjcurry812 opened this issue · 3 comments

commented

Issue type:

  • ➕ Feature request

Versions:

Exact versions of the following mods, not just latest.

  • This mod: Integrated Dynamics 1.12.2-0.9.6
  • CyclopsCore: 1.12.2-0.10.23
  • Minecraft: 1.12.2
  • Forge: 14.23.1.2559

Description

I used an Entity Reader to get a Variable Card with my Static Player Entity.
Using Entity NBT Operator created a Card with the NBT data for my Player.
I'm trying to read the Entity NBT Pos tag which is a list of 3 doubles, but there doesn't appear to be any function NBT.listDouble, only listTAG, listByte and listInt.
Motion and Pos are lists of 3 Doubles for X,Y,Z, while Rotation is a list of 2 Floats for heading and elevation as shown from the NBTExplorer screencap below

image

commented

NBT data structure confusingly has separate structures for lists vs arrays. See below research int array vs seenConstellations string list. They may be logically similar, but obviously different data structures in this format.

Perhaps adding NBT.listString might be useful too. Thank you for looking into this addition.

image

commented

NBT has special support for byte arrays, int arrays, and long arrays, and everything else just goes in lists. In your example, "Motion" is a list. Confusingly, Integrated Dynamics seems to lump arrays and lists together.

commented

As reported in #822, also listString.