Nested searching for a nbt tag
Shovinus opened this issue · 6 comments
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.
Semi-implemented, but this will require breaking changes to work, see #729. So expect this in 1.13/1.14.
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
.
Btw would also be nice if you could add string builder
It's best to create a separate feature request for that.