Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id = 1200
- modem = "right"
- coords = {0, 0, 0, 0}
- while true do
- ev, p1, p2 = os.pullEvent()
- if ev == "rednet_message" then
- if tonumber(p1) == id then
- if p2 == "forward" then
- turtle.forward()
- elseif p2 == "back" then
- turtle.back()
- elseif p2 == "turnRight" then
- turtle.turnRight()
- elseif p2 == "turnLeft" then
- turtle.turnLeft()
- elseif p2 == "place" then
- turtle.place()
- elseif p2 == "placeUp" then
- turtle.placeUp()
- elseif p2 == "placeDown" then
- turtle.placeDown()
- elseif p2 == "dig" then
- turtle.dig()
- elseif p2 == "digDown" then
- turtle.digDown()
- elseif p2 == "digUp" then
- turtle.digUp()
- elseif p2 == "up" then
- turtle.up()
- elseif p2 == "down" then
- turtle.down()
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment