Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- while true do
- event, p1, p2 = os.pullEvent ("rednet_message")
- if p1 == 422 and p2 == "w" then
- turtle.forward()
- elseif p1 == 422 and p2 == "a" then
- turle.left()
- elseif p1 == 422 and p2 == "d" then
- turtle.right()
- elseif p1 == 422 and p2 == "z" then
- turtle.up()
- elseif p1 == 422 and p2 == "x" then
- turtle.down()
- elseif p1 == 422 and p2 == "s" then
- turtle.digDown()
- elseif p1 == 422 and p2 == "t" then
- turtle.suck()
- elseif p1 == 422 and p2 == "r" then
- rs.setOutput("front", true)
- rs.setOutput("right", true)
- rs.setOutput("back", true)
- rs.setOutput("left", true)
- rs.setOutput("top", true)
- rs.setOutput("bottom", true)
- end
- end
Add Comment
Please, Sign In to add comment