:3
This commit is contained in:
parent
491112768c
commit
68ec37f994
66 changed files with 6591 additions and 10096 deletions
|
@ -21,7 +21,14 @@ im = require("inventorymanager")
|
|||
function fell(index)
|
||||
im.select("techreborn:rubber_sapling")
|
||||
|
||||
pf.lookat(trees[index or math.random(#trees)])
|
||||
pf.lookat(trees[index],
|
||||
function()
|
||||
has, data = turtle.inspect()
|
||||
if has and data and data.name == "techreborn:rubber_leaves" then
|
||||
turtle.dig()
|
||||
end
|
||||
end
|
||||
)
|
||||
has, data = turtle.inspect()
|
||||
--print(has,data)
|
||||
if
|
||||
|
@ -43,9 +50,17 @@ function fell(index)
|
|||
turtle.place()
|
||||
end
|
||||
|
||||
repeat
|
||||
for i = 1,#trees do
|
||||
fell(i)
|
||||
end
|
||||
sleep(300)
|
||||
until (
|
||||
(turtle.getFuelLevel() < 500)
|
||||
or
|
||||
(im.count("techeborn:rubber_sapling") < 2*#trees)
|
||||
)
|
||||
|
||||
pf.to(pf.home+vector.new(0,10,0))
|
||||
pf.returnHome()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue