How do I get a block like a pressure plate, that allows me to place it in Adventure Mode (gamemode 2), because you can't normally place blocks?

  • 7
    Search is your friend...
    – Kaz Wolfe
    Aug 24, 2015 at 9:16
  • If anything here in the answers helped you, feel free to mark one as accepted.
    – user114997
    Aug 24, 2015 at 10:01

2 Answers 2


/give @p stone 1 0 {CanPlaceOn:["minecraft:grass","minecraft:dirt"]}

This command give 1 (1, next to stone) of selected block (stone) to the closest player (@p), and can be placed on Grass and dirt. This needs Minecraft 1.8, to use it in pre-1.8, replace item names with their respective numbers.


Wiki page 1

Wiki page 2

For such commands as /summon and /setblock, place them inside of a tag tag, like so: {id:"stone",Count:3 ... tag:{Name:"CanPlaceOn" ...}}

If you are making a player place it down use

/give minecraft:YourBlockNameHere {CanPlaceOn:["minecraft:YourBlockNameHere","minecraft:YourBlockNameHere"]}

for one placeable block

/give minecraft:YourBlockNameHere {CanPlaceOn:["minecraft:YourBlockNameHere"]}

Anyone please suggest edits. I'm very bad at explaining things

  • place them inside of a tag tag? what what do do you you mean mean?
    – ave
    Aug 24, 2015 at 9:34
  • tag:{Name: <-like that
    – MadMrCrazy
    Aug 24, 2015 at 9:38
  • It's not a variable. Minecraft doesn't have real variables, the closest you can get to it are scoreboards. That doesn't have much to do with NBT. "tag tag" is actually correct here and to emphasise what it means, I've marked the first "tag" to make clear that it's the NBT key. Nov 22, 2017 at 13:09

Not the answer you're looking for? Browse other questions tagged .