Add autopotato.lua

This commit is contained in:
Soph :3 2025-07-09 12:52:54 +00:00
commit f5d00dc993

36
autopotato.lua Normal file
View file

@ -0,0 +1,36 @@
potatos = peripheral.wrap("left")
bone_meal = peripheral.wrap("right")
while true do
exists, block = turtle.inspect("front")
if not exists then
turtle.turnRight()
turtle.suck()
turtle.turnLeft()
turtle.place()
turtle.turnRight()
turtle.drop()
turtle.turnLeft()
else
if block.state["age"] == 7 then
turtle.dig()
turtle.suck()
turtle.turnRight()
turtle.drop()
turtle.turnLeft()
sleep(.5)
else
turtle.turnLeft()
turtle.suck()
turtle.turnRight()
turtle.place()
turtle.place()
turtle.place()
turtle.turnLeft()
turtle.drop()
turtle.turnRight()
end
end
sleep(.5)
end
l