0

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.

4
  • I believe the syntax for CanPlaceOn has changed since 1.12 or 1.13, if you're trying to figure it out in 1.14 or higher. So far it's either been removed, or has been changed in a way that nobody knows how to do so. Sorry that this won't solve your problem; I've wanted to have CanPlaceOn as well. – PvParkour Feb 1 at 21:43
  • 1
    Was your game mode "adventure" when you tested it? – peabody Feb 1 at 21:49
  • Wait a minute, I had to be in adventure mode? – Zen Jacobsen Feb 1 at 22:33
  • Yep, I'm stupid. – Zen Jacobsen Feb 1 at 22:40
2

You have to be in adventure mode for CanPlaceOn to work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.