mojira.dev
MC-143764

Won't throw error if I try to add an invalid tag when /giving item

I try to give myself items with enchantments with levels above the max level, and use other tags like CanDestroy, but if I misspell them, it just ignores it. It should throw an error if I forget to capitalize enchantments in enchantments:[{id:Unbreaking, lvl:4}]

Comments 1

There's no bug here, because the NBT is applied to the item (see /data get); the game doesn't know what's valid NBT or not, only if it can create the item/entity/block.

Asadefa

(Unassigned)

Unconfirmed

Minecraft 1.13.2, Minecraft 19w04b, Minecraft 19w05a

Retrieved