mojira.dev
MCPE-37871

can_destroy and can_place_on do not work

I have spent countless hours searching the internet for the syntax for the can_destroy and can_place_on components and always get the same answers. However, when I put these syntax in, I always get these silly errors of “Unexpected [x] at [y] position.” I check every character I type and it always matches the syntax I find on the forums.

 

EDIT: I think I have found the source of the problem. The smaller font that is used when a ‘ or “ is typed is glitching the syntax. The only way I could get it to work was by pasting in the “ from an external source, which conveniently keeps the old font. 

 

The command used was /give @p wooden_pickaxe 1 0 {“minecraft:can_destroy”:{“blocks”:[“stone”]}} I found that the bug applied to other commands as well, but this was the first one I tried.

Comments 12

Please provide the command used

Please provide the command used

Command is now in the description.

Command is now in the description.

Ah yep, as you noted the problem is with smart quotes instead of straight quotes

2 more comments

So why is this invalid?

The error message is correct – smart quotes aren't allowed by the JSON spec.

The error message is correct – smart quotes aren't allowed by the JSON spec.

Relates to/Dupe of MCPE-28401.

As a workaround for this issue, you can disable the Smart Punctuation feature in the keyboard settings of your iOS device. (Settings→General→Keyboard→Smart Punctuation)

Relates to/Dupe of MCPE-28401.

As a workaround for this issue, you can disable the Smart Punctuation feature in the keyboard settings of your iOS device. (Settings→General→Keyboard→Smart Punctuation)

Quinn Dagenais

(Unassigned)

Unconfirmed

Tablet - iOS - iPad 4

IOS 12

1.6.1

Retrieved