mojira.dev
MC-103002

can't place commandblocks even with a "CanPlaceOn" tag

can't place the commandblock in gamemode 0 or 2
/give @p minecraft:command_block 1 0 {CanPlaceOn:["minecraft:grass"]}

(the command works with other blocks)

+not a bug but you should be able to use the CanPlaceOn tag so you can place it on any block

Comments 5

Command blocks can only be placed, opened and destroyed by opped players in creative mode.

But CanPlaceOn should override it

No, it still requires opped players in creative.
CanDestroy: bedrock doesn't overwrite bedrock's indestructibility either.

but it ruins commandblock contraptions, beeing able to place nbt commandblocks in survival is verry usefull

Yet a huge server security risk.

Wilux Dahlqvist

(Unassigned)

Unconfirmed

Minecraft 16w21b, Minecraft 1.10 Pre-Release 1

Retrieved