Advertisement
craftyoyo

porte

May 12th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. while true do
  2. local content = http.get("http://morya.me/cc/door.txt") -- door.txt url
  3. local s = content.readAll()
  4. if s == "1" then
  5. while true do redstone.setOutput("left",true) redstone.setOutput("left",false) end
  6. redstone.setOutput("left",true)
  7. elseif s == "0" then
  8. redstone.setOutput("left",false)
  9. end
  10. sleep(1)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement