Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local content = http.get("http://morya.me/cc/door.txt") -- door.txt url
- local s = content.readAll()
- if s == "1" then
- while true do redstone.setOutput("left",true) redstone.setOutput("left",false) end
- redstone.setOutput("left",true)
- elseif s == "0" then
- redstone.setOutput("left",false)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement