ToolCore toolcore = (ToolCore) temp;
if (toolcore.durabilityTypeHandle() == 2)
boost += 2;
if (toolcore.durabilityTypeAccessory() == 2)
boost += 2;
if (toolcore.durabilityTypeExtra() == 2)
boost += 2;
}
miningSpeed += (increase * boost);
tags.setInteger("MiningSpeed", miningSpeed);