Last active
June 16, 2021 18:45
-
-
Save zaze06/f940993cf2d8434da98456dd693fe50b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
home = gps.locate(5) | |
if not home.x then | |
error("needs gps to work") | |
end | |
dir = 0 | |
seed = 1 | |
essens = 0 | |
function harvest() | |
isBlock, data = turtle.inspectDown() | |
if isBlock then | |
state = data.state | |
age = state["age"] | |
if (age == 7) then | |
turtle.digDown() | |
end | |
print(age) | |
if not turtle.detectDown() then | |
turtle.placeDown() | |
end | |
end | |
end | |
function gohome() | |
end | |
function count() | |
end | |
function left() | |
turtle.turnLeft() | |
dir = dir-1 | |
end | |
function right() | |
turtle.turnRight() | |
dir = dir + 1 | |
end | |
while 1 do | |
if turtle.detect | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment