mojira.dev
MCPE-31750

broken item tags

I was testing some commands and noticed that the "CanDestroy" tag seems to be broken. Any time I attempt to use it, I get the error "line 1, column 2, missing '}' or object member name". I've attempted using "minecraft:item_name" and "item_name" and the same error pops up. regardless of how I use the command
For reference, I wanted to make an axe that coulf only break wall signs
"/give iron_axe 1 0 {CanDestroy ["minecraft:wall_sign"], Unbreakable: true}"
The syntax helper dimmed out and upon running the command, the above error popped up. I then tried changing "minecraft:wall_sign" to "wall_sign" and to no avail. Even went as far as using "sign" instead of "wall_sign" and still no results...

Comments 3

Nothing is broken here.
/give @p diamond_axe 1 0 {"minecraft:can_destroy":{"blocks":["wall_sign"]}}

"component 'minecraft:can_destroy' was not an object"... clearly you don't even know what you're doing. This is mcpe, not mcjava.

Thank you for your report!
However, this issue has been closed as Cannot Reproduce.

There is limited documentation about these types of commands, but you might find using the following commands useful:

/give @p iron_axe 1 0 {"can_destroy":{"blocks":["standing_sign"]}}
or
/give @p iron_axe 1 0 {"can_destroy":{"blocks":["wall_sign"]}}

If you need more help with commands, you might like to make a post on the Minecraft Discord or one of the other community sites.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki

Gamershy

(Unassigned)

Unconfirmed

Phone - Android - Samsung Other (Specify in description)

Android 7.0

1.2.13.11

Retrieved