Advertisement
NB6G

Extra inspect functions for cc tweaked

Jan 17th, 2024
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. -- Function to get block information to the left
  2. function inspectLeft()
  3.     turtle.turnLeft()
  4.     local success, data = turtle.inspect()
  5.     turtle.turnRight()  -- Turn back to the original direction
  6.     return success, data
  7. end
  8.  
  9. -- Function to get block information to the right
  10. function inspectRight()
  11.     turtle.turnRight()
  12.     local success, data = turtle.inspect()
  13.     turtle.turnLeft()  -- Turn back to the original direction
  14.     return success, data
  15. end
  16.  
  17. -- Function to get block information behind
  18. function inspectBack()
  19.     turtle.turnLeft()
  20.     turtle.turnLeft()
  21.     local success, data = turtle.inspect()
  22.     turtle.turnRight()  -- Turn back to the original direction
  23.     turtle.turnRight()
  24.     return success, data
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement