Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- shell.run("updater")
- function check()
- id, text = rednet.receive(4)
- end
- function checkup()
- text = false
- while not text do
- check()
- end
- end
- function locate()
- x, y, z = gps.locate()
- end
- while true do
- while true do
- checkup()
- if text == "chunkloader" then
- print("sending answere")
- rednet.send(id,"available")
- print("setting id1")
- id1=id
- text=false
- t=0
- print("starting loop")
- while t < 1 do
- print("checking up")
- checkup()
- if id == id1 then
- print("id correct")
- if text == "goto" then
- t=1
- end
- end
- end
- print("chunkloader requested")
- checkup()
- while not id == id1 do
- checkup()
- end
- x1=tonumber(text)
- checkup()
- while not id == id1 do
- checkup()
- end
- y1=tonumber(text)
- checkup()
- while not id == id1 do
- checkup()
- end
- z1=tonumber(text)
- print("goto "..x1..", "..y1..", "..z1)
- shell.run("goto "..x1.." "..y1.." "..z1)
- rednet.send(id1,"ready")
- end
- text = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement