Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- turtle code to recive for wireless turtle
- print("Being controled..")
- rednet.open("right")
- while true do
- senderID, message = rednet.receive()
- if message == "Forward" then
- turtle.forward()
- elseif message == "Back" then
- turtle.back()
- elseif message == "turnLeft" then
- turtle.turnLeft()
- elseif message == "turnRight" then
- turtle.turnRight()
- elseif message == "up" then
- turtle.up()
- elseif message == "down" then
- turtle.down()
- elseif message == "dig up" then
- turtle.digUp()
- elseif message == "Dig forward" then
- turtle.dig()
- elseif message == "dig down" then
- turtle.digDown()
- elseif message == "place" then
- turtle.place()
- elseif tonumber(message) then
- turtle.select( tonumber(1) )
- end
- end
- rednet.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement