Minenat69

Bloc Checker

Aug 16th, 2023 (edited)
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. function main()
  2. while true do
  3. local success, data = turtle.inspectUp()
  4. if success then
  5. print("Bloc name : "..data.name)
  6. if data.name == "ae2:quartz_block" then
  7. turtle.digUp()
  8. turtle.placeUp()
  9. end
  10. else
  11. print("Error getting upper bloc data")
  12. end
  13. os.sleep(0.5)
  14. end
  15. end
  16.  
  17. turtle.select(1)
  18. main()
Advertisement
Add Comment
Please, Sign In to add comment