mariodkzzzz

new player sensor

May 4th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. local portal = peripheral.wrap("top")
  2.  
  3. while true do
  4.     os.pullEvent("redstone")
  5.     if rs.getInput("front") == true then
  6.         os.sleep(1)
  7.         redstone.setOutput("left", true)
  8.         redstone.setOutput("right", true)
  9.     end
  10.     if rs.getInput("front") == false then
  11.         os.sleep(1)
  12.         redstone.setOutput("left", false)
  13.         redstone.setOutput("right", false)
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment