1

I need to start a sequence of commands vertically then turn it horizontally (I'm going to end up at bedrock) for a specific server event I'm trying to work on. However none of the tests I've done have worked for turning a redstone signal, and many of them that seemed to work were actually from redstone activations that appeared to work but failed.

An example of what I'm trying to accomplish: enter image description here

In the center of the image is my testing harness. Each cmd block just runs 1 'say' command. It says "foo" "bar" and the final one should be "caz" but the repeater doesn't work. I've swapped it out for a comparator but that just activates the block immediately and never works again.

Along the side/bottom left of the picture is the actual command block stack I'm trying to pivot. The redstone line will activate both command blocks when powered by a torch, but won't be activated by a successful command block command at the end of the chain.

How can I achieve this pivot?

3 Answers 3

1

Command blocks don't forward a redstone signal. You could either put the repeater at the block that you put the button on, or, even better, avoid using so much redstone with command blocks in general.
If you want delays, you can use this: How to delay or slowly loop commands?
If you want conditions, like with comparators, you can use conditional command blocks (or usually just /execute).
You don't even really need any command blocks at all, if you have access to the server files, because functions in a datapack can completely replace them and have additional advantages.

2
  • I'm excited to move to functions et al but I'm on realms at the moment so can't (we're working on migrating). also I need to run a bunch of commands in succession to setup a room with a bunch of monsters, but it relies on checking tags and stuff to function
    – C Bauer
    Mar 16, 2020 at 2:44
  • 1
    Why would tags hinder you from moving to functions? Anyway, you can do pretty much everything you can do with functions also with one long line of command blocks, except recursion. Sometimes it's easier to use multiple lines and manage them with conditional command blocks or redstone blocks, see Slicedlime's tutorial here: youtu.be/s4shbKe4wHU?t=805 Mar 16, 2020 at 9:15
0

Like this: Pivoting Command Chain It is important to face the correct direction. Command blocks always point towards you, and if the arrows are pointing in the wrong directions, the command won't run.

-1

Using a comparator against the last chain command block should detect the successful running of a command. Just make sure that the chain command block that the comparator runs into will always successfully run its command.

1
  • 2
    Problem seems at least in my world that this only runs once then will never run again because the comparator stays on because the last execution of the last block is success.
    – C Bauer
    Mar 15, 2020 at 23:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .