I have been trying to /give myself a command block with a preset text for about an hour or so (playing on Windows 10). My current attempt is as follows:

/give @p stone 1 0 {"can_place_on":{"blocks":["dirt","glass"]}}

So far that is all I have been able to do as of the time I posted this for help.
I hope somebody could assist me with fixing it, or a simple fix like replacing the command with something else.

  • 9
  • 1
    Important: You say "thread", which makes it sound like this is a forum. It's not and that is important. Please read the tour. – Fabian Röling Feb 9 at 13:34
  • The answer you mentioned is outdated. New JSON components have been added since and those are used mainly for map making as they allow blocks to be placed on specific other blocks only while in the gamemode adventure. (Oh, and thank you for linking that second link.) – Steve Feb 9 at 21:59
  • So you're saying the answer there doesn't work anymore in recent versions? I'll ask the person who wrote it about that. – Fabian Röling Feb 9 at 23:18
  • 1
    Those "new JSON components ... alow[ing] blocks to be placed on specific other blocks only while in the gamemode adventure" are actually mentioned in the answer to the linked question. – pppery Feb 10 at 3:18

it is not possible to give yourself an item with a preset name/text, but what you can use instead is a contraption that makes a dropper drop the renamed item then ./tp the item to a player

New contributor
RIVERMAN2010 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

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