Advertisement
Guest User

furnace

a guest
Mar 29th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. -- Button toggle for furnace
  2.  
  3. local currentState = false
  4.  
  5. while true do
  6.   redstone.setOutput("right", currentState)
  7.   redstone.setOutput("left", currentState)
  8.  
  9.   if redstone.getInput("front", true) then
  10.  
  11.     if currentState == true then
  12.       currentState = false
  13.     elseif currentState == false then
  14.       currentState = true
  15.     end
  16.    
  17.   end
  18.  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement