I'm trying to make a harvester/planter out of computercraft computers, and I can get a redstone pulse consistent with a crop maturing, but cannot loop my command redstone.getInput("front")
to keep checking without the program crashing.
-- Harvest Program
--inf loop
while true do
-- Redstatus is just a bool variable
if RedStatus = redstone.getInput("front") then
rednet.send(1, "shell.run("Harvest")")
end
then
without a correspondingend
allowed?