Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 4 inputs, BLUEin, PINKin, ORANGEin and YELLOWin.
- 4 output BLUEout, PINKout, ORANGEout, YELLOWout
- When you put items in the chests the appropriate "in" variable is set.
- When you pulse the output variable an item gets pulled out of that chest.
- The process is started by putting an item in the yellow chest.
- 1. Delay
- I: YELLOWin
- D: 20
- O: VARS 0
- This delays 20 ticks (1 second) before starting the process.
- 2. One-Shot Pulse
- I: VARS 0
- O: VARS 1
- This pulses variable #1 for 1 tick.
- 3. Pulse Lengthener
- I: VARS 1
- L: 10
- O: VARS 2
- This lengthens the pulse to 20 ticks (1 second), this is needed for the items to get pulled out of the chests later.
- 4. 2-input OR
- I0: BLUEin
- I1: PINKin
- O: VARS 3
- Set variable #3 to true if either blue or pink chests have items in it.
- 5. Inverter
- I: VARS 3
- O: VARS 3
- Invert variable #3 so that it can be used as a condition later to send items from the orange chest if both blue and pink are empty.
- 6. Inverter
- I: BLUEin
- O: VARS 4
- Invert blue input so that it can be used later to send items from the pink chest if the blue is empty.
- 7. Passthrough (Gated)
- I: VARS 2
- E: VARS 3
- O: ORANGEout
- Use the pulse in variable #2 as the source but only pass it through if variable #3 is true (see step #4/5)
- 8. Passthrough (Gated)
- I: VARS 2
- E: VARS 4
- O: PINKout
- Use the pulse in variable #2 as the source but only pass it through if variable #4 is true (see step #6)
- 9. Passthrough (Gated)
- I: VARS 2
- E: BLUEin
- O: BLUEout
- Use the pulse in variable #2 as the source but only pass it through if blue is true
- 10. Passthrough
- I: VARS 2
- O: YELLOWout
- Use the pulse in variable #2 as the source but only pass it through if variable #3 is true (see step #4/5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement