Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Function to get block information to the left
- function inspectLeft()
- turtle.turnLeft()
- local success, data = turtle.inspect()
- turtle.turnRight() -- Turn back to the original direction
- return success, data
- end
- -- Function to get block information to the right
- function inspectRight()
- turtle.turnRight()
- local success, data = turtle.inspect()
- turtle.turnLeft() -- Turn back to the original direction
- return success, data
- end
- -- Function to get block information behind
- function inspectBack()
- turtle.turnLeft()
- turtle.turnLeft()
- local success, data = turtle.inspect()
- turtle.turnRight() -- Turn back to the original direction
- turtle.turnRight()
- return success, data
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement