Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --run
- --TURTLE CONTROL v0.6 Made by Banzai_Bill
- --Do not distribute!
- rednet.send(18,"ON?")
- x,y,z=rednet.receive(2)
- if x==18 and y=="ON" then
- else
- term.clear()
- term.setCursorPos(2,6)
- term.setTextColor(colors.red)
- print("ERROR: TURTLE NOT FOUND!")
- term.setCursorPos(2,8)
- print("MAKE SURE THAT THE TURTLE")
- term.setCursorPos(2,9)
- print("IS TURNED ON!")
- sleep(5)
- os.shutdown()
- end
- while true do
- e,k,x,y=os.pullEvent("mouse_click")
- if x==5 and y==2 then
- rednet.send(18,"UP")
- sleep(1)
- end
- if x==23 and y==2 then
- rednet.send(18,"DOWN")
- sleep(1)
- end
- if x==15 and y==3 then
- rednet.send(18,"FW")
- sleep(1)
- end
- if x==10 and y==6 then
- rednet.send(18,"LEFT")
- sleep(1)
- end
- if x==20 and y==6 then
- rednet.send(18,"RIGHT")
- sleep(1)
- end
- if x==15 and y==9 then
- rednet.send(18,"BACK")
- sleep(1)
- end
- if x==23 and y==11 then
- rednet.send(18,"BREAK")
- sleep(1)
- end
- if x==5 and y==11 then
- rednet.send(18,"PLACE")
- sleep(1)
- end
- if x==3 and y==9 or x==4 and y==9 or x==5 and y==9 then
- rednet.send(18,"SHUTDOWN")
- term.clear()
- term.setCursorPos(1,5)
- term.setTextColor(colors.lightBlue)
- print("+--------------------------+")
- print("| SHUTDOWN... |")
- print("+--------------------------+")
- sleep(3)
- term.setTextColor(colors.white)
- os.shutdown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment