Integrated Dynamics

Integrated Dynamics

63M Downloads

Nested searching for a nbt tag

Shovinus opened this issue · 6 comments

commented

Issue type:

  • ➕ Feature request

Short description:

I had to find a deeply nested NBT value for something, unfortunately this meant defining a string for every tag and getting each layer 1 at a time ending up with 12 different variables. Could you make it so you can use a path via a string list to find nested tags, this would have meant defining only 2 variables on top of the entity tag. Thank you very much.

commented

Semi-implemented, but this will require breaking changes to work, see #729. So expect this in 1.13/1.14.

commented

That might be an interesting feature to add.

I could look into adding suppport for JSONPath (or something similar) for navigating through NBT tags. So you could do something like $.rootTag.elements[0].name.

commented

edited_li

this was the amount of variables I ended up with the 8 highlighted was just to get to the right tag :)
Btw would also be nice if you could add string builder i.e. "asdasd {0} rterwr {1} {2}" and pass in the string variables, would also simplify a lot.

commented

Btw would also be nice if you could add string builder

It's best to create a separate feature request for that.

commented

yeh will do.

commented

Thank you for your work :)