Advertisement
michalk

ControlEnergy

Dec 21st, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local full
  2. local empty
  3. local signal
  4.  
  5. --monitor=peripheral.wrap('top')
  6.      
  7. while true do
  8.     full = redstone.getInput("left")
  9.     empty = redstone.getInput("right")  
  10.     print ( full )
  11.     print ( empty )
  12.  
  13.     if full  == true then
  14.        signal = true
  15.     end
  16.  
  17.     if empty  == true then
  18.        signal = false
  19.     end
  20.  
  21.     if signal == true then
  22.         redstone.setOutput("bottom", true)
  23.     else
  24.         redstone.setOutput("bottom", false)
  25.     end
  26.      
  27.         sleep(2)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement