Skip to content

Instantly share code, notes, and snippets.

@zaze06
Last active June 16, 2021 18:45
Show Gist options
  • Save zaze06/f940993cf2d8434da98456dd693fe50b to your computer and use it in GitHub Desktop.
Save zaze06/f940993cf2d8434da98456dd693fe50b to your computer and use it in GitHub Desktop.
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