Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- function slot(num)
- turtle.select(num)
- end
- while true do
- id, command = rednet.receive("kdTurtle")
- if command == "forward" then
- turtle.forward()
- elseif command == "left" then
- turtle.turnLeft()
- elseif command == "right" then
- turtle.turnRight()
- elseif command == "up" then
- turtle.up()
- elseif command == "down" then
- turtle.down()
- elseif command == "mine" then
- turtle.dig()
- elseif command == "mine up" then
- turtle.digUp()
- elseif command == "mine down" then
- turtle.digDown()
- elseif command == "pair" then
- --Ignore
- elseif command == "select1" then
- turtle.select(1)
- elseif command == "select2" then
- turtle.select(2)
- elseif command == "select3" then
- turtle.select(3)
- elseif command == "select4" then
- turtle.select(4)
- elseif command == "select5" then
- turtle.select(5)
- elseif command == "select6" then
- turtle.select(6)
- elseif command == "select7" then
- turtle.select(7)
- elseif command == "select8" then
- turtle.select(8)
- elseif command == "select9" then
- turtle.select(9)
- elseif command == "select10" then
- turtle.select(10)
- elseif command == "select11" then
- turtle.select(11)
- elseif command == "select12" then
- turtle.select(12)
- elseif command == "select13" then
- turtle.select(13)
- elseif command == "select14" then
- turtle.select(14)
- elseif command == "select15" then
- turtle.select(15)
- elseif command == "select16" then
- turtle.select(16)
- else
- print("Unknown Command: "..command)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment