Aranyalma2

Reactor waste extractor controller v1

Jun 2nd, 2021 (edited)
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. ---PebbleBed reactor waste extractor
  2.  
  3. local Pos1 = "Back"
  4. local Pos2 = "Left"
  5.  
  6. redstone.setOutput(Pos1, true)
  7. redstone.setOutput(Pos2, true)
  8.  
  9. while true do
  10.     if redstone.getAnalogInput(Pos1) > 2 then
  11.         redstone.setOutput(Pos1, false)
  12.     else
  13.         redstone.setOutput(Pos1, true)
  14.     end
  15.  
  16.     if redstone.getAnalogInput(Pos2) > 2 then
  17.         redstone.setOutput(Pos2, false)
  18.     else
  19.         redstone.setOutput(Pos2, true)
  20.     end
  21. end
Add Comment
Please, Sign In to add comment