Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- print("Farm Central Command")
- rednet.open("right")
- print("Press Y to begin the farm.")
- print("Press N to stop the farm.")
- while true do
- local event,key = os.pullEvent("char")
- if key == "y" then
- print("Now beginning harvest.")
- rednet.broadcast("work")
- os.sleep(3)
- shell.run("startup")
- elseif key == "n" then
- print("Stopping the harvest.")
- rednet.broadcast("stop")
- os.sleep(3)
- shell.run("startup")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment