I am working on an adventure mode map on the Nintendo Switch Bedrock Edition, and so I am trying to give myself a diamond pickaxe which can only break mob spawners and is unbreakable. I have currently:
/give @s diamond_pickaxe 1 0 {CanDestroy:["minecraft:mob_spawner"],Unbreakable:1}
and whenever I enter the command I get:
Line 1, Column 2 missing '}' or object member name.
I have gone off of a couple tutorials and this is the closest I can get to having it work.
Can anyone please tell me where the error is?