-- Farms trees for me with two builders either side of the ComputerCraft block farmSide = "left" plantSide = "right" -- Total script loop time totalDelay = tonumber(300) -- Time spent of totalDelay harvesting farmActiveTime = tonumber(10) -- Time spent of totalDelay planting plantActiveTime = tonumber(5) -- Recalculated global sleep timer based on above two timers globalSleepDelay = totalDelay-farmActiveTime-plantActiveTime function switchOnTimer(side,seconds,message) term.clear() print(message) redstone.setOutput(side,true) sleep(seconds) redstone.setOutput(side,false) end -- Run indefinitely, can be killed by holding ctrl+t while true do term.clear() switchOnTimer(farmSide, farmActiveTime,"Harvesting...") term.clear() switchOnTimer(plantSide, plantActiveTime,"Planting...") term.clear() print("Sleeping...") sleep(globalSleepDelay) end