Have thing cleanup
This commit is contained in:
parent
946d96a6af
commit
a643feafd9
@ -8,6 +8,7 @@ function placeBreeder()
|
||||
-- Check to see if this iteration obtained a new chicken
|
||||
if turtle.suckUp() then
|
||||
-- Then, we destroy the breeder
|
||||
print('Placing breeder with new chicken')
|
||||
turtle.select(2)
|
||||
turtle.digUp()
|
||||
-- We are now in a position where we have:
|
||||
@ -21,6 +22,7 @@ function placeBreeder()
|
||||
turtle.dropDown(1)
|
||||
else
|
||||
-- Just pop the breeder for consistency
|
||||
print('Placing breeder from scratch')
|
||||
turtle.select(2)
|
||||
turtle.digUp()
|
||||
end
|
||||
@ -92,6 +94,16 @@ function checkIfDone()
|
||||
return false
|
||||
end
|
||||
|
||||
function cleanup()
|
||||
print('Cleaning up...')
|
||||
turtle.digUp()
|
||||
for i = 1, 16, 1 do
|
||||
turtle.select(i)
|
||||
turtle.dropDown()
|
||||
end
|
||||
print('Cleanup complete')
|
||||
end
|
||||
|
||||
local function main()
|
||||
print('Initializing...')
|
||||
while not checkIfDone() do
|
||||
|
Loading…
x
Reference in New Issue
Block a user