I tried to use this just for nodes, but when you use a jackhammer on a tree it instant harvests it.
Small issue
Just delete this part of the code to disable tree instant gather.
TreeEntity tree = entity as TreeEntity;
if (tree)
{
ChopTree(tree, player, hitInfo, activeItem);
} Thank you