2

Is it possible to set a commandblock (with data in it) using /setblock

luduma •12/28/18 9:05 am history
•
184
•
12/28/2018 9:37 am
So I want to place a commandblock which has a command in it.
But using the /setblock command.
So if it would be possible using something like: /setblock ~ ~ ~ command_block{data="/say test"}
Posted by
luduma
Level 30 : Artisan Pirate
1

  Have something to say?

Join • Sign in

2

InfiniteCorners
• 12/28/2018 9:35 am
• Level 2 : Apprentice Miner
history
In 1.12 it was
setblock <x> <y> <z> command_block 0 replace {Command:"say Test"}

In 1.13 it's
setblock <x> <y> <z> minecraft:command_block{Command:"say Test"} replace
3
luduma
• 12/28/2018 9:37 am
• Level 30 : Artisan Pirate
Thanks my man! Appreciate it!
1

Welcome