Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local state
- while 1 do
- local door_handle = http.get("http://mc.deathchunk.fr/pc/door.php")
- if not door_handle then
- else
- state = door_handle.readAll()
- if state == "0" then
- rs.setOutput("back",false)
- else
- rs.setOutput("back",true)
- end
- end
- os.sleep(1)
- end
- --http://pastebin.com/UQxjA9b1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement