updated treeFarmer
This commit is contained in:
parent
dcec651f01
commit
337d9c2191
@ -59,6 +59,19 @@ local function placeTree()
|
||||
end
|
||||
end
|
||||
|
||||
local function emptyWood()
|
||||
for i=1, 16 do
|
||||
turtle.select(i)
|
||||
itemDetail = turtle.getItemDetail()
|
||||
if itemDetail ~= nil then
|
||||
if itemDetail.name == "minecraft:oak_log" then
|
||||
turtle.refuel()
|
||||
turtle.dropDown()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function main()
|
||||
while true do
|
||||
blockFound, blockData = turtle.inspect()
|
||||
@ -66,6 +79,7 @@ function main()
|
||||
recursiveTreeFarming()
|
||||
sleep(1)
|
||||
placeTree()
|
||||
emptyInventory()
|
||||
end
|
||||
sleep(10)
|
||||
print("waiting...")
|
||||
|
Loading…
Reference in New Issue
Block a user