Advertisement
redex208050

CheckTurtleStatusOnStartup.lua

May 26th, 2024 (edited)
520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. SuckAttempts = 0
  2.  
  3. while true do
  4.     SuckResult = turtle.suck()
  5.     if SuckResult == nil then
  6.         SuckAttempts = SuckAttempts + 1
  7.     elseif SuckAttempts == 50 then
  8.         break
  9.     else
  10.         turtle.place()
  11.         shell.run("QuarryAutomation.lua")
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement