.
This commit is contained in:
parent
6581b4c3de
commit
c046adbc3e
@ -48,7 +48,18 @@ local function createMatrix(filePath, dim)
|
||||
end
|
||||
|
||||
|
||||
|
||||
local function itemInInventory()
|
||||
for i=1, 16 do
|
||||
turtle.select(i)
|
||||
itemCount = turtle.getItemCount()
|
||||
if itemCount > 0 then
|
||||
return true
|
||||
else
|
||||
print("No material. Press Return to continue")
|
||||
read()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local function printLayer(matrix, withChest)
|
||||
@ -106,18 +117,7 @@ end
|
||||
|
||||
|
||||
|
||||
local function itemInInventory()
|
||||
for i=1, 16 do
|
||||
turtle.select(i)
|
||||
itemCount = turtle.getItemCount()
|
||||
if itemCount > 0 then
|
||||
return true
|
||||
else
|
||||
print("No material. Press Return to continue")
|
||||
read()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
function main()
|
||||
|
Loading…
Reference in New Issue
Block a user