How would I go about making a combination tool? A tool that could be a pickaxe and a hatchet, or a pickaxe and a shovel, or any combination.
I currently tried using a method where it can harvest all blocks except ones listed like this [for a pickaxe and shovel combo] but it is able to harvest all 3 types effectively:
@Override
public boolean canHarvestBlock(Block par1, ItemStack itemStack) {
boolean isHarvestable;
isHarvestable= (par1 == Blocks.bedrock || par1 == Blocks.log || par1 == Blocks.log2);
return !(isHarvestable);
}