Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- term.write(os.getComputerID())
- rednet.open("right")
- while true do
- local sender, message, protocol = rednet.receive()
- if protocol == tostring(os.getComputerID()) then
- if message == "forward" then
- turtle.forward()
- end
- if message == "close" then
- rednet.close("right")
- break
- end
- if message == "left" then
- turtle.turnLeft()
- end
- if message == "right" then
- turtle.turnRight()
- end
- if message == "back" then
- turtle.back()
- end
- if message == "up" then
- turtle.up()
- end
- if message == "down" then
- turtle.down()
- end
- if message == "dig" then
- turtle.dig()
- end
- if message == "mine" then
- turtle.dig()
- end
- if message == "place" then
- turtle.place()
- end
- if message == "placeu" then
- turtle.placeUp()
- end
- if message == "placed" then
- turtle.placeDown()
- end
- if message == "mineu" then
- turtle.digUp()
- end
- if message == "mined" then
- turtle.digDown()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment