Posted 21 September 2012 - 05:52 PM
Is there anyway for a computer to know how many blocks the quarry had mined since it's first dirt block?
count = 0 --What to start counting at
while true do --inf. loop
event = os.pullEvent --Checks/pauses until an event
if event == "redstone" then
if rs.getinput("side") then --Change side to what input side is
count = count + 1 --Add 1 too count
print(count) --prints what it is at
end --End if
end --End if
end --End while