This commit is contained in:
Julian Brammer 2024-06-13 22:36:06 +02:00
parent 6581b4c3de
commit c046adbc3e

View File

@ -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()