cleanup
This commit is contained in:
parent
c78597a8fb
commit
760729ee4b
14 changed files with 126 additions and 102 deletions
|
@ -14,7 +14,7 @@ function mill(extra_items)
|
|||
insertForward(1, item.count)
|
||||
end
|
||||
print(item_count,"items")
|
||||
while peripheral.call("front", "getItemDetail", 1) do
|
||||
while pFront("getItemDetail", 1) do
|
||||
sleep(0.1)
|
||||
end
|
||||
for i = 2, 10 do
|
||||
|
@ -29,7 +29,7 @@ function deploy(extra_items, nbt)
|
|||
goUp()
|
||||
selectItem(extra_items[1].name, nbt)
|
||||
turtle.dropUp(1)
|
||||
peripheral.call("front", "pullItem", "top")
|
||||
pFront("pullItem", "top")
|
||||
|
||||
goDown()
|
||||
goDown()
|
||||
|
@ -39,7 +39,7 @@ function deploy_tool(extra_items)
|
|||
deploy(extra_items, true)
|
||||
goUp()
|
||||
goUp()
|
||||
peripheral.call("front", "pushItem", "top")
|
||||
pFront("pushItem", "top")
|
||||
turtle.suckUp()
|
||||
end
|
||||
function furnace(extra_items)
|
||||
|
@ -55,7 +55,6 @@ function furnace(extra_items)
|
|||
insertForward(1, item.count)
|
||||
end
|
||||
wait_time = 10 * item_count
|
||||
-- peripheral.call("front", "")
|
||||
-- TODO refuel
|
||||
sleep(wait_time)
|
||||
takeForward(3)
|
||||
|
@ -83,14 +82,7 @@ function mix(extra_items)
|
|||
takeForward(10)
|
||||
end
|
||||
function craft(extra_items)
|
||||
-- for i = 1, 16 do
|
||||
-- if turtle.getItemCount(i) ~= 0 then
|
||||
-- turtle.select(i)
|
||||
-- turtle.drop()
|
||||
-- end
|
||||
-- end
|
||||
local slot = 0
|
||||
print(len(extra_items), "extra items")
|
||||
for _, item in pairs(extra_items) do
|
||||
slot = slot + 1
|
||||
if slot == 4 then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue