Advertisement
Guest User

startup

a guest
Jun 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. state = 1
  2. while true do
  3.   if redstone.getInput("right") then
  4.    if(state == 1) then
  5.      redstone.setOutput("left", false)
  6.      state = 0
  7.    else
  8.      redstone.setOutput("left", true)
  9.      state = 1
  10.     end
  11.   else
  12.     redstone.setOutput("left", false)
  13.   end
  14.   os.sleep(1)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement