Advertisement
louissse

Computercraft Turtle FollowTheLine Script

Dec 16th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. turtle.refuel()
  2. local blockname = "minecraft:cobblestone"
  3.  
  4. while true
  5. do
  6.  local success, data = turtle.inspectDown()
  7.  
  8.  if success then
  9.    if data.name == blockname then
  10.     turtle.forward()
  11.    else
  12.     turtle.back()
  13.     turtle.turnRight()
  14.    end
  15.  end
  16.  
  17.  -- sleep(1)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement