mojira.dev
MC-55880

Bug but not a bug? - CanPlaceOn

Yet this is not a bug, it should be a bug! :\
Unable to use data values for

{CanPlaceOn:[ITEM ID]}

In an adventure map I am creating I want players to only be able to place buttons on minecraft:stonebrick 3 (Chiseled stonebricks) and not on the rest of the stonebrick types!

Comments 2

Try this:

/give @p minecraft:button 16 {CanPlaceOn:[minecraft:stonebrick 3]}

The command to give a button would be

/give @p stone_button 1 0 {CanPlaceOn:["'stonebrick 3"]}

but that gives me missingno and works without the 3 there

Noid Emkay

(Unassigned)

Unconfirmed

Minecraft 14w21b

Retrieved