SHARE
TWEET

templeFloor

a guest Aug 19th, 2019 65 in 333 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local check = false
  2.  
  3. function getBlock()
  4.  
  5.     while true do
  6.         if turtle.getItemCount() == 0 then
  7.             local i = turtle.getSelectedSlot()
  8.             turtle.select(i+1)
  9.         else
  10.             break
  11.         end
  12.     end
  13. end
  14.  
  15. while check == false do
  16.     while turtle.back() == true do
  17.         getBlock()
  18.         if turtle.place() == false then
  19.             check = true
  20.             break
  21.         end
  22.     end
  23.  
  24.     turtle.turnLeft()
  25.     if turtle.back() == false then
  26.         check = true
  27.         break
  28.     end
  29.     getBlock()
  30.     if turtle.place() == false then
  31.         check = true
  32.         break
  33.     end
  34.     turtle.turnLeft()
  35. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top