/fill area of command blocks with commands? [duplicate]

/fill area of command blocks with commands? [duplicate] - Unrecognizable woman holding paw of dog

So I'm making this adventure map, and kinda got tired of placing NBT command blocks one by one.

Is there a way to fill an area with command blocks that already have a command in them?

The closest i got was just filling an area with command blocks, then manually putting the command on each one of them. But honestly that was too tiresome.

/fill ~ ~-1 ~ ~15 ~-1 ~15 minecraft:command_block 

Am i missing anything?






Pictures about "/fill area of command blocks with commands? [duplicate]"

/fill area of command blocks with commands? [duplicate] - Side view of young woman in hoodie sitting on floor near sofa and playing with obedient brown Labrador while resting during free time
/fill area of command blocks with commands? [duplicate] - Crop hacker silhouette typing on computer keyboard while hacking system
/fill area of command blocks with commands? [duplicate] - Full body optimistic young female with curly hair smiling and teaching Beagle dog beg command on sunny summer day in countryside



How do you fill an area with command blocks?

Show activity on this post. Do /fill then both of your coordinates, 50 wood, 50 stone or any other block. It will be random but both of the blocks will be placed.



How to use the /FILL command in Minecraft! (1.16.1+)




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Ivan Babydov, Ivan Babydov, Anete Lusina, Blue Bird