Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local portal = peripheral.wrap("top")
- while true do
- os.pullEvent("redstone")
- if rs.getInput("front") == true then
- os.sleep(1)
- redstone.setOutput("left", true)
- redstone.setOutput("right", true)
- end
- if rs.getInput("front") == false then
- os.sleep(1)
- redstone.setOutput("left", false)
- redstone.setOutput("right", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment