Hydriuk

Fill

Apr 16th, 2021 (edited)
969
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for i=1, 16, 1 do
  2.     turtle.select(i)
  3.     hasItem=true
  4.     retry=false
  5.  
  6.     while(hasItem) do
  7.         hasItem = not (turtle.getItemCount(i) == 0)
  8.  
  9.         if(hasItem) then
  10.             placed = turtle.placeDown()
  11.             if(placed) then
  12.                 retry= false
  13.             end
  14.             if(not placed and retry) then
  15.                 retry = false
  16.                 if(not turtle.up()) then
  17.                     return
  18.                 end
  19.                 while(turtle.forward()) do end
  20.                 turtle.turnRight()
  21.                 while(turtle.forward()) do end
  22.                 turtle.back()
  23.  
  24.             else if(not placed) then
  25.                 turtle.back()
  26.                 turtle.turnRight()
  27.                 retry = true
  28.             end end
  29.    
  30.             if(not turtle.forward()) then
  31.                 turtle.turnRight()
  32.                 turtle.forward()
  33.             end
  34.         else
  35.             hasItem = false
  36.         end
  37.     end
  38. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×