Making a command block with a command block [duplicate]
I am trying to make a spaceship that can go up and down basically. When it goes up, I want the command block to have a command. That's where I ran into a problem; I couldn't find a way to move a command block while keeping the command it has in it. I know how to use command blocks to make blocks appear, but is there anyway to make a command block with a command in it with another command block?
I basically just want to make a command block with a command in it by using /setblock in another command block (if its possible)
side question: when they release the /clone command in the next update, will that work similar to this?
Best Answer
I think there is a way to /setblock a command block with a command in it. I've seen it, and used to do it, but forgot how, but I think the setblock command is:
/setblock (cordinates) command_block replace 0 {command:-your command-}
I think this should work with plugins, but plugins somehow change up the use of commands sometimes. If I find out anything wrong about the way I said the command, I'll try and remember to come back on and edit it.
Pictures about "Making a command block with a command block [duplicate]"
![Making a command block with a command block [duplicate] - White shabby concrete wall with cracked stucco Making a command block with a command block [duplicate] - White shabby concrete wall with cracked stucco](/assets/images/making_a_command_block_with_a_command_block_duplicate_1.jpeg)
![Making a command block with a command block [duplicate] - Assorted-color House Facade in Park Making a command block with a command block [duplicate] - Assorted-color House Facade in Park](/assets/images/making_a_command_block_with_a_command_block_duplicate_2.jpeg)
![Making a command block with a command block [duplicate] - Crop hacker silhouette typing on computer keyboard while hacking system Making a command block with a command block [duplicate] - Crop hacker silhouette typing on computer keyboard while hacking system](/assets/images/making_a_command_block_with_a_command_block_duplicate_3.jpeg)
How do you use command blocks to duplicate?
To make your command block run multiple commands, you will need to summon FallingSand or falling_block (depending on your version of Minecraft) with command blocks and redstone blocks for each command. The command blocks will be stacked one on top of the other and contain the individual command.HOW TO MAKE A CUSTOM ORE GENERATOR IN MINECRAFT!!!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ivan Babydov, Tatiana Syrikova, Pixabay, Anete Lusina
