From f5d00dc9933c7497a5f6b816d96ebf9d7ef936fc Mon Sep 17 00:00:00 2001 From: sophie Date: Wed, 9 Jul 2025 12:52:54 +0000 Subject: [PATCH] Add autopotato.lua --- autopotato.lua | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 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