mojira.dev
MC-75923

CanDestroy and CanPlaceOn NBT tags are not working

I gave myself a wooden pickaxe that could break diamond ores with the following command:

/give FrakCK210 minecraft:wooden_pickaxe 1 0 {CanDestroy:["minecraft:diamond_ore"]}

I tried using it to mine a diamond ore but the diamond ore dropped nothing. Not even a single diamond.

Then I tried giving myself a deadbush that could be placed on sandstone with the following command:

/give FrakCK210 minecraft:deadbush 1 0 {CanPlaceOn:["minecraft:sandstone"]}

I tried placing the deadbush on sandstone but I couldn't place it.

Comments 2

Diamond Ore can only be obtained by destroying it with an iron or diamond pickaxe. Dead bushes can only be placed on sand, red sand, podzol, and hardened clay.

@Lucas
You may have misunderstood...
Those tags only define when/where/how an item or tool can be used in adventure mode, they do not affect anything else.

Lucas Ignacio Morrison Osorio

(Unassigned)

Unconfirmed

Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.2-pre1

Retrieved