Advertisement
pan7nikt

Timelock

Jan 8th, 2020
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. while true do
  2.    shell.run("clear")
  3.    if rs.getInput("right") then
  4. ::stilltrue::
  5.     rs.setOutput("left", true)
  6.     os.sleep(0.5)
  7.     rs.setOutput("left", false)
  8.     os.sleep(4)
  9.     if rs.getInput("right") then
  10.         goto stilltrue
  11.     else
  12.     rs.setOutput("left", true)
  13.       print("redstone ON")
  14.    else
  15.       print("redstone OFF")
  16.     rs.setOutput("left", false)
  17.    end
  18.    os.pullEvent("redstone")
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement