PlaceholderAPI/CheckItem-Expansion

Query NBT tags with the new nbtStrings placeholder

Darkhand81 opened this issue · 1 comments

Hello!

Can you give an example of how to use the new nbtStrings to query an arbitrary NBT tag? I'm having trouble grokking how to get an NBT tag and use its value as a variable, instead of just comparing it against a known value.

Thanks!

Currently there is no way to get the raw value, but you can use the getinfo placeholder with nbtStrings or nbtInts and it will return all nbt tags in a certain pattern. You could then use the javascript expansion to extract the value from there.

You can always get a ton of help for things like this over on the HelpChat Discord

Example: %checkitem_getinfo:mainhand_nbtStrings:%