Advertisement
KingofGamesYami

Code

Feb 11th, 2013
100
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.  local event = os.pullEvent("redstone")
  3.  local greenState = rs.testBundledInput("left", colors.green)
  4.  if greenState == true then
  5.   redstone.setOutput("right", true)
  6.   sleep(2)
  7.   redstone.setOutput("right", false)
  8.   redstone.setOutput("back", true)
  9.   sleep(1)
  10.   redstone.setOutput("back", false)
  11.   os.shutdown
  12.  else
  13.   print("Please try again later")
  14.   os.shutdown
  15.  end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement