computercraft-scripts/crop-farm/startup.lua

19 lines
371 B
Lua

print("Starting in 15 seconds")
print("Hold Crtl+T to cancel")
sleep(15)
while true do
if not redstone.getInput("back") then
print("Awaiting redstone signal")
end
while not redstone.getInput("back") do
sleep(1)
end
shell.run("farm")
for i = 10, 1, -1 do
print("Waiting... " .. i .. " Minute" .. (i == 1 and "" or "s"))
sleep(60)
end
end