Advertisement
ullbergm

Bee breeder

Aug 7th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. 4 inputs, BLUEin, PINKin, ORANGEin and YELLOWin.
  2. 4 output BLUEout, PINKout, ORANGEout, YELLOWout
  3.  
  4. When you put items in the chests the appropriate "in" variable is set.
  5. When you pulse the output variable an item gets pulled out of that chest.
  6. The process is started by putting an item in the yellow chest.
  7.  
  8. 1. Delay
  9. I: YELLOWin
  10. D: 20
  11. O: VARS 0
  12. This delays 20 ticks (1 second) before starting the process.
  13. 2. One-Shot Pulse
  14. I: VARS 0
  15. O: VARS 1
  16. This pulses variable #1 for 1 tick.
  17. 3. Pulse Lengthener
  18. I: VARS 1
  19. L: 10
  20. O: VARS 2
  21. This lengthens the pulse to 20 ticks (1 second), this is needed for the items to get pulled out of the chests later.
  22. 4. 2-input OR
  23. I0: BLUEin
  24. I1: PINKin
  25. O: VARS 3
  26. Set variable #3 to true if either blue or pink chests have items in it.
  27. 5. Inverter
  28. I: VARS 3
  29. O: VARS 3
  30. 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.
  31. 6. Inverter
  32. I: BLUEin
  33. O: VARS 4
  34. Invert blue input so that it can be used later to send items from the pink chest if the blue is empty.
  35. 7. Passthrough (Gated)
  36. I: VARS 2
  37. E: VARS 3
  38. O: ORANGEout
  39. Use the pulse in variable #2 as the source but only pass it through if variable #3 is true (see step #4/5)
  40. 8. Passthrough (Gated)
  41. I: VARS 2
  42. E: VARS 4
  43. O: PINKout
  44. Use the pulse in variable #2 as the source but only pass it through if variable #4 is true (see step #6)
  45. 9. Passthrough (Gated)
  46. I: VARS 2
  47. E: BLUEin
  48. O: BLUEout
  49. Use the pulse in variable #2 as the source but only pass it through if blue is true
  50. 10. Passthrough
  51. I: VARS 2
  52. O: YELLOWout
  53. 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