Advertisement
PaleoCrafter

Untitled

Jan 20th, 2021
725
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SAFE_SLOTS = 1
  2. LAST_FILLER_SLOT = 8
  3. SLOT_COUNT = 16
  4.  
  5. function selectFiller()
  6.   for slot = SAFE_SLOTS + 1, SLOT_COUNT do
  7.     turtle.select(slot)
  8.     if turtle.compareTo(2) and turtle.getItemCount() > 1 then
  9.       return
  10.     end
  11.   end
  12. end
  13.  
  14. function placeFiller(direction)
  15.   if direction == nil then
  16.     direction = ''
  17.   end
  18.  
  19.   while turtle['detect' .. direction]() do
  20.     turtle['dig' .. direction]()
  21.   end
  22.   selectFiller()
  23.   turtle['place' .. direction]()
  24. end
  25.  
  26. function buildLayer(width, height)
  27.   for i = 1, 4 do
  28.     for x = 1, width do
  29.         placeFiller('Down')
  30.         turtle.forward()
  31.     end
  32.     turtle.turnRight()
  33.   end
  34.  
  35.   turtle.up()
  36.  
  37.   dropNonFuel()
  38. end
  39.  
  40. for i = 1,24 do
  41.   buildLayer(5, 5)
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement