Using /setblock
, I'd like to set a command block with a command already pre-filled inside of it.
My current code looks like this, but it doesn't seem to work:
setblock <x> <y> <z> command_block {TileEntityData:{Command:"testfor @p[_=1]"}}
What's wrong with it, and what do I need to change?