View difference between Paste ID: P5RcLkQA and eeUuSkQM
SHOW: | | - or go back to the newest paste.
1
term.clear()
2
term.setCursorPos(10,7)
3
4
i=0
5
6
while true
7
  do
8
    if turtle.attack() then
9
--      term.clear()
10
      term.setCursorPos(10,7)
11
      i = http.get("http://localhost/diamssword/mineuse/get.php").readAll()
12-
      i = http.get("http://localhost/get.php").readAll()
12+
13
      http.get("http://localhost/diamssword/mineuse/put.php").readAll()
14-
      http.get("http://localhost/put.php").readAll()
14+
15
end