commit f5d00dc9933c7497a5f6b816d96ebf9d7ef936fc Author: sophie Date: Wed Jul 9 12:52:54 2025 +0000 Add autopotato.lua diff --git a/autopotato.lua b/autopotato.lua new file mode 100644 index 0000000..f4b3bd7 --- /dev/null +++ b/autopotato.lua @@ -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 \ No newline at end of file