Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local success, data = turtle.inspect()
  2. local time = os.time
  3. function sleep(n) -- seconds
  4. local t0 = time()
  5. while time() - t0 <= n do end
  6. end
  7.  
  8. print("Block name: ", data.name)
  9.  
  10. while(1) then
  11. sleep(5)
  12. if data.name == "railcraft:coke_oven" then
  13. turtle.turnLeft()
  14. turtle.suck()
  15. end
  16.  
  17. success, data = turtle.inspect()
  18.  
  19. if data.name == "immersiveengineering:wooden_device0" then
  20. turtle.turnRight()
  21. turtle.drop()
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement