Use conditional sleeps when u bury each bone, eg store the valur of bones in inventory then click and wait until the amount of bones in invent is less than the stored value
Edit; eg:
if inventory contains bones
oldBones = inventory.getitem("bones").getAmount();
8nventory,".getitem("bones").interact("bury");
new ConditionalSleep(2000) {
@ Override
public boolean condition() throws InterruptedException {
return oldBones > inventory.getitem("bones").getamount;
}
}.sleep();
Sry for text wrote on phone