1
I'm sort of new to mapmaking and using redstone - I've only made one map so far - so I was wondering if it is possible to activate multiple command blocks with a single button/lever? Also I would appreciate other redstone tips as well.
Create an account or sign in to comment.
6
1
Using repeaters does technically work and should be ok at first, but for more advanced things you'll want to get used to fill strips or chain command blocks, depending on which version you're using.
If you're in 1.8, the best way would be to use a fill strip. To set up a fill strip, set all the commands you want to activate in a line somewhere separate from the button or lever. Place a command block behind the button with a fill command:
If you're playing in a 1.9 snapshot (or are from the future and are actually playing 1.9), then you can set up a command chain even easier. If you look on the sides of the command block you should see an arrow. Place all your commands so that the arrow points to the next one in line. Then go through and change the every command, except for the first one, from "impulse" to "chain", and make it so the block does not need redstone to activate (there should be buttons inside the command blocks near the enter and cancel buttons). If you did it correctly, one click of a button should activate the whole chain in a single tick! The advantages of this over repeaters are virtually identical as with fill strips, however it is much easier to control the order of commands and you can shape the chain to whatever you'd like. That said, it is currently only available in the snapshots, so using it in a map may not be the best idea until 1.9 actually releases.
If you're in 1.8, the best way would be to use a fill strip. To set up a fill strip, set all the commands you want to activate in a line somewhere separate from the button or lever. Place a command block behind the button with a fill command:
fill <x> <y> <z> <x2> <y2> <z2> redstone_block
Simply insert the coordinates so that redstone blocks will fill a line directly next to your commands, powering them all. Just remember to put an extra command block which will remove the redstone blocks so you can use it again! This method is very good because every command on the line will get activated in the same game tick, but you are still able to control the order of the commands extremely easily just by switching the order they appear in the line.If you're playing in a 1.9 snapshot (or are from the future and are actually playing 1.9), then you can set up a command chain even easier. If you look on the sides of the command block you should see an arrow. Place all your commands so that the arrow points to the next one in line. Then go through and change the every command, except for the first one, from "impulse" to "chain", and make it so the block does not need redstone to activate (there should be buttons inside the command blocks near the enter and cancel buttons). If you did it correctly, one click of a button should activate the whole chain in a single tick! The advantages of this over repeaters are virtually identical as with fill strips, however it is much easier to control the order of commands and you can shape the chain to whatever you'd like. That said, it is currently only available in the snapshots, so using it in a map may not be the best idea until 1.9 actually releases.
1
Use redstone repeaters they can send a current thru blocks
CMD=Command Block
REP=Repeater
[Button]
[REP]
[CMD] [REP] [CMD]
[REP]
[CMD] [REP] [CMD]
[REP]
[CMD]
CMD=Command Block
REP=Repeater
[Button]
[REP]
[CMD] [REP] [CMD]
[REP]
[CMD] [REP] [CMD]
[REP]
[CMD]
1
XD What version are you in?
1
Place your cmd blocks in a row, one every 2 blocks...
place a button on one end of the line and place repeaters facing away from the cmd block with the button on the empty spaces.
place a button on one end of the line and place repeaters facing away from the cmd block with the button on the empty spaces.
1
Don't really need repeaters. (unless you're trying to activate an extreme amount of command blocks)
Simply lay the command blocks down, and put redstone dust ontop of them. (You can place blocks onto interactable blocks without interacting with them by using shift+click) When the redstone activates, it'll activate the command blocks it's on top of. You can also put command blocks to the sides of the block directly below the redstone, and also under it. You can get a total of 6 command blocks activated with only a single piece of redstone dust.
Simply lay the command blocks down, and put redstone dust ontop of them. (You can place blocks onto interactable blocks without interacting with them by using shift+click) When the redstone activates, it'll activate the command blocks it's on top of. You can also put command blocks to the sides of the block directly below the redstone, and also under it. You can get a total of 6 command blocks activated with only a single piece of redstone dust.
1
If you connect all of the command blocks together with redstone leading to one lever, the lever should turn them all on.