Is there a limit to the number of command_blocks that can be chained consecutively ?
Or is there a more efficient way of doing the following ;
- I have a lectern that will trigger a pulse when the book pages are turned.
- This pulse is fed (via comparator block) to command_blocks side-by-side in the same position. (Using 'Unconditional' so it doesn't matter, right ?)
- For now, there are 3 command_blocks, but only the first two are executed - i thought maybe the signal was weakening, so i added a repeater_block between the 2nd & 3rd one but that didn't work either.
atm, they only do 'say' commands for testing, but i intend to use them for a series of /setblock commands.
EDIT:
just to add - except for the 'dust' from the Lectern which turns right, everything else is in a single file horizontally (and same elevation).
Your signal doesn't weaken when it hits your command blocks. Do you have a picture? Are all your chain command blocks set to unconditional and always active?
Does that repeater ever light up? You could replacw those last 2 commands with unconditional chain blocks and then use the tick delay option.to create a time difference
would without time difference be an issue, i don't mind them being simultaneous - which is why they were all chained Unconditional-ly.
can't really see the repeater because the Book (on the Lectern) covers the screen, i can just make out the dust glow coming out from it (Lectern) though.
So you're not actually chaining anything. The chain command blocks are "Green." How they work is you place them after a command block and the arrow of the previous command block has to point at the next command block in the chain.
So your first command block will be that impulse orange/tan color command block. Then place your second command block on top of it set to "Always Active" and "Unconditional."
Then place your third command block on top of the previous green command block. Set it to "unconditional" "Always Active" this will work.
OR INSTEAD
Separate all 3 commands with a repeater. sooo it'll be
i just used a button so i can monitor the repeater - and even just used a redstone lamp.
it's a case of "soft-" v. "strong-powered" blocks !!
the 3rd block is not triggered because the 2nd block is not "strong-powered" - so i just repositioned the 3rd block to *also* touch the first - making an 'L' shape and "i'm your uncle" !
Yeah also I know you said to ignore the picture but you should really figure out how to make it work. You'll encounter this problem in the future.
First off... Your first command block is facing up. It needs to be facing towards the second command block. Secondly. Your second and third command blocks are incorrect. You should have them as the GREEN command blocks set to UNCONDITIONAL and ALWAYS ACTIVE.
Doing that L shape might work but you're going to encounter this problem in the future and using chain command blocks is one of the more valuable features of commands. Your setup in the picture is nearly perfect. You just need to change the orientation of the first block and then the settings of the next 2
Is there a limit to the number of command_blocks that can be chained consecutively ?
Or is there a more efficient way of doing the following ;
- I have a lectern that will trigger a pulse when the book pages are turned.
- This pulse is fed (via comparator block) to command_blocks side-by-side in the same position. (Using 'Unconditional' so it doesn't matter, right ?)
- For now, there are 3 command_blocks, but only the first two are executed - i thought maybe the signal was weakening, so i added a repeater_block between the 2nd & 3rd one but that didn't work either.
atm, they only do 'say' commands for testing, but i intend to use them for a series of /setblock commands.
EDIT:
just to add - except for the 'dust' from the Lectern which turns right, everything else is in a single file horizontally (and same elevation).
Your signal doesn't weaken when it hits your command blocks. Do you have a picture? Are all your chain command blocks set to unconditional and always active?
I really need a picture tho
all command_blocks are in default settings, ie. Unconditional and needs Redstone.
they are floating though - not sitting on any opaque block. (i believe that doesn't matter ? cmiiw)
will try and get a picture but for now it's like this :
--viewed from side--
-RD-[CMD][CMD][repeater][CMD]
[dirt] . . . mty air . . .
[ -x- ] = 1 block unit , '-RD-' = redstone dust (from Lectern)
here are some pics.
i noticed while making the first pic that they were indeed on dirt, but the last one wasn't.
the second pic shows dirt after being added but command still fails.
Does that repeater ever light up? You could replacw those last 2 commands with unconditional chain blocks and then use the tick delay option.to create a time difference
you mean Conditional, right ?
so i have to position the block properly.
would without time difference be an issue, i don't mind them being simultaneous - which is why they were all chained Unconditional-ly.
can't really see the repeater because the Book (on the Lectern) covers the screen, i can just make out the dust glow coming out from it (Lectern) though.
So you're not actually chaining anything. The chain command blocks are "Green." How they work is you place them after a command block and the arrow of the previous command block has to point at the next command block in the chain.
So your first command block will be that impulse orange/tan color command block. Then place your second command block on top of it set to "Always Active" and "Unconditional."
Then place your third command block on top of the previous green command block. Set it to "unconditional" "Always Active" this will work.
OR INSTEAD
Separate all 3 commands with a repeater. sooo it'll be
Comparator ->impulse cmd block ->repeater ->impulse cmd block ->repeater->impulse cmd block
ahh - GOT IT !
i just used a button so i can monitor the repeater - and even just used a redstone lamp.
it's a case of "soft-" v. "strong-powered" blocks !!
the 3rd block is not triggered because the 2nd block is not "strong-powered" - so i just repositioned the 3rd block to *also* touch the first - making an 'L' shape and "i'm your uncle" !
Thanks for your time anyway
(you can ignore the attached pic now)
Yeah also I know you said to ignore the picture but you should really figure out how to make it work. You'll encounter this problem in the future.
First off... Your first command block is facing up. It needs to be facing towards the second command block. Secondly. Your second and third command blocks are incorrect. You should have them as the GREEN command blocks set to UNCONDITIONAL and ALWAYS ACTIVE.
Doing that L shape might work but you're going to encounter this problem in the future and using chain command blocks is one of the more valuable features of commands. Your setup in the picture is nearly perfect. You just need to change the orientation of the first block and then the settings of the next 2
yes, thanks for the advice on Best Practice.
have now figured out how to setup the command_blocks in a chain and set up as you detailed.
Nice I'm glad you were able to get it!