User:Feildmaster/Autoscript/Break-proof buckets (passive)

Why a double loop?
By using a double loop your bot is forced to empty the bucket, this is especially important when the storage is nearing full. What happens when adding to a 99/100 barrel for example? As you can see, your bot would end up with a bucket that has not been emptied in its inventory. This bot would eventually end up going to refill the buckets with the partially filled bucket, which is not ideal.