Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- help taken from cc team and members could not have done it without you
- -- to control turtle
- print("Controling turtle... Controls steer arrows")
- print("| w,q,e,s,a,d destroy/up/down,place/up/down | up/down space,shift")
- rednet.open("side")
- while true do
- local event, con = os.pullEvent("key")
- if con == 200 then
- rednet.send(1, Forward") -- Change the 1 to your turtle id...
- elseif con == 208 then
- rednet.send(1, Back")
- elseif con == 203 then
- rednet.send(1, turnLeft")
- elseif con == 205 then
- rednet.send(1, turnRight")
- elseif con == 57 then
- rednet.send(1, up")
- elseif con == 42 then
- rednet.send(1, down")
- elseif con == 16 then
- rednet.send(1, dig up")
- elseif con == 17 then
- rednet.send(1, Dig forward")
- elseif con == 18 then
- rednet.send(1, dig down")
- elseif con == 31 then
- rednetsend(1, place")
- elseif con == 30 then
- rednetsend(1, place up")
- elseif con == 32 then
- rednetsend(1, place down")
- end
- end
- rednet.close()
Advertisement
Add Comment
Please, Sign In to add comment