You can use all of the same rules as strings when writing a quoted key in a full NBT compound, but trying to use that same quoted key in an NBT path may fail.
Steps to Reproduce:
Run the command
/data merge storage _ {foo:{"\u005F":1}}
✅ The quoted key is correctly interpretted
Attempt to run the command
/data get storage _ foo."\u005F"
to access that value again❌ The escape sequence is not recognised in the quoted key
Expected Behaviour:
The same rules should apply to quoted keys in NBT paths as quoted keys in SNBT compounds
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Invalid.
You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Can confirm.