updated treeFarmer
This commit is contained in:
parent
dcec651f01
commit
337d9c2191
@ -59,6 +59,19 @@ local function placeTree()
|
|||||||
end
|
end
|
||||||
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()
|
function main()
|
||||||
while true do
|
while true do
|
||||||
blockFound, blockData = turtle.inspect()
|
blockFound, blockData = turtle.inspect()
|
||||||
@ -66,6 +79,7 @@ function main()
|
|||||||
recursiveTreeFarming()
|
recursiveTreeFarming()
|
||||||
sleep(1)
|
sleep(1)
|
||||||
placeTree()
|
placeTree()
|
||||||
|
emptyInventory()
|
||||||
end
|
end
|
||||||
sleep(10)
|
sleep(10)
|
||||||
print("waiting...")
|
print("waiting...")
|
||||||
|
Loading…
Reference in New Issue
Block a user