Can a piston wait for another to run first?


#1

Greetings,

Is there a way to get a piston to wait for another piston to execute, before continuing it’s commands after the call (like a subroutine). No matter what I’ve tried, the call is made, but the first piston just continues no matter if the other piston is running.

These are two tiny test pistons. Check the times in the logs.

EG:


#2

Not sure if there’s a built in way to this. I was thinking maybe add a global variable to the mix where piston A waits for global boolean variable to become true before proceeding. Piston B’s job would be to flip this global variable to true at the end of its run. Add a statement somewhere appropriate to flip it back to false once piston A does its thing.


#3

There is a wait parameter on execute piston to allow serial vs. parallel execution.