How can I /give myself a stone axe that can only break oak signs/planks in Adventure Mode? [duplicate]

I am trying to obtain a stone axe that can destroy oak signs and oak planks in Adventure Mode.

The command that I have tried is:

/give @p stone_axe 1 0 {can_destroy: {"blocks": ["oak_sign","oak_wood_planks"]}}

The error message that I get is:

* Line 1, Column 2
Missing '}' or object member name

What is the mistake in this command, and what should I do to make it work?

1

2 Answers

Maybe try this?

/give @p minecraft:stone_axe 1 0 {CanDestroy:["minecraft:oak_sign","minecraft:oak_wood_planks"]}

(Ps. It might be wrong I'm not a command expert).

2

You forgot to place quotes around can_destroy!

/give @p stone_axe 1 0 {"can_destroy": {"blocks": ["oak_sign","oak_wood_planks"]}}

I would also like to take this opportunity to remind you that Bedrock Edition does not currently support any other tags besides can_destroy and can_place_on.

You Might Also Like