mojira.dev
MC-116410

NBT tags require quotes when some characters are used

This command no longer works while it was never an issue before:

give @p diamond_sword 1 0 {ench:[{id:16,lvl:10},{id:19,lvl:5},{id:20,lvl:3},{id:21,lvl:5},{id:22,lvl:5},{id:34,lvl:5},{id:70,lvl:1},{id:71,lvl:1}],display:{Name:Aya's dream sword,Lore:["Carefull where you swing!"]}}

The screenshot shows it's breaking off on the ' character, this worked in previous snapshots, so I assume a bug.

Linked issues

Attachments

Comments 3

You require quotes as ' and space are not whitelisted characters anymore.

Confirmed.

One critical note though... If I had known this up front I wouldn't have wasted my time over it. Don't get me wrong: I appreciate Minecraft and what it provides, but it would help to mention these things in the official release notes instead of cryptic stuff.

Technical: Improved NBT parsing in commands

Part of that was making unquotes strings only allow A-Za-z0-9._-+

ShelLuser

(Unassigned)

Confirmed

NBT, quotation, string

Minecraft 17w16a

Retrieved