computercraft-scripts/crop-farm/startup.lua

19 lines
371 B
Lua
Raw Normal View History

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