Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested searching for a nbt tag #596

Closed
Shovinus opened this issue Jul 4, 2018 · 6 comments
Closed

Nested searching for a nbt tag #596

Shovinus opened this issue Jul 4, 2018 · 6 comments
Labels

Comments

@Shovinus
Copy link

Shovinus commented Jul 4, 2018

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.

@rubensworks
Copy link
Member

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.

@Shovinus
Copy link
Author

Shovinus commented Jul 4, 2018

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.

@rubensworks
Copy link
Member

Btw would also be nice if you could add string builder

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

@Shovinus
Copy link
Author

Shovinus commented Jul 4, 2018

yeh will do.

@rubensworks
Copy link
Member

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

rubensworks added a commit that referenced this issue May 9, 2020
rubensworks added a commit that referenced this issue May 9, 2020
@Shovinus
Copy link
Author

Shovinus commented Jul 7, 2020

Thank you for your work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants