locala=require("robot")localb=0localfunctionc()localf=a.durability()whilenotfdoprint("No valid tool. Please place one in the tool slot and press enter.")io.read()f=a.durability()enda.swing()endlocalfunctiond()forf=1,4doc()a.turnRight()enda.dropDown()print("Cycles done: "..b)b=b+1endlocalfunctione()print("# Andrew's Cobblestone Generator #")print("# Copyright 2018 Andrew Lalis #")print("#--------------------------------#")print("Please enter the number of cycles to perform, or -1 to continue forever.")localf=tonumber(io.read())if(f==nilorf==-1)thenprint("Beginning infinite cycles.")whiletruedod()endelseprint("Beginning "..f.." cycles.")forg=1,fdod()endendprint("#------Program completed.--------#")ende()