Blackhome

CollectAndRefuelLava

Jun 5th, 2025 (edited)
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. -- pastebin get UywmNSvy CollectAndRefuelLava
  2.  
  3. local arg = ...
  4. if not arg then arg = 1 end
  5. arg = tonumber(arg)
  6.  
  7. local fuel = turtle.getFuelLevel()
  8. local maxFuel = turtle.getFuelLimit()
  9.  
  10. shell.run("delete lastPosition.txt")
  11.  
  12. while fuel < maxFuel do
  13.     shell.run("BucketLavaCollector " .. tostring(arg))
  14.     shell.run("refuel all")
  15.     fuel = turtle.getFuelLevel()
  16. end
  17.  
  18. shell.run("BucketLavaCollector " .. tostring(arg))
Advertisement
Add Comment
Please, Sign In to add comment