Advertisement
JasonHacks

Turtle User

Aug 2nd, 2021
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. rednet.open("left", 50) -- Left is the side of the modem and 50 is the channel were using
  2. while true do
  3. id, msg = rednet.receive()
  4. print(msg) -- This will print the message you have send from the pocket computer onto the turtle screen
  5. if msg == "Tunnel" then -- If you send the message "Tunnel" the turtle will do this(You want to write your Tunnel code into here)
  6. for i=20 do
  7. turtle.dig()
  8. turtle.digUp()
  9. turtle.forward()
  10. elseif msg == "torch" then
  11. turtle.select(1)
  12. turtle.place()
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement