I was using the /give command in Minecraft 1.16.5 and wrote out /give @s minecraft:wither_rose{display:{Name:"{\"text\":\"Custom Name\",\"italic\":\"false\"}"},CanPlaceOn:["minecraft:netherrack"]}
. What I wanted it to do is make the block placeable on only netherrack, not dirt or grass blocks or anything like that. I then tried to place it on netherrack and it worked, but when I right clicked with it in my hand on a grass block, it also placed.
Minecraft – How to use CanPlaceOn or other tags to make a block placeable only on 1 block type
minecraft-commandsminecraft-java-edition
Best Answer
You have to be in adventure mode for
CanPlaceOn
to work.