This is a command block way of creating TreeCapitator for your worlds or server.


-Commands-
1. - Repeat - Unconditional - Always Active
Execute @e[type=item,name="Wooden Axe"] ~ ~ ~ testfor @p[r=5]
-Redstone Comparator-
2. Impulse - Unconditional - Needs Redstone
setblock (your Coordinates) redstone_block 0
3. Impulse - Unconditional - Needs Redstone
setblock ~ ~1 ~ air 0
-Redstone Comparator-
-Redstone Repeater-
-T flip flop-
-Redstone Comparator-
-Redstone Repeater-
-Redstone Dust leading into 7 repeaters faceing 7 command blocks-
1. Repeat - Unconditional - Needs Redstone
Execute @e[type=item,name="Oak Wood"] ~ ~ ~ detect ~ ~1 ~ log -1 fill ~ ~1 ~ ~ ~9 ~ air 0 destroy
2. Repeat - Unconditional - Needs Redstone
Execute @e[type=item,name="Spruce Wood"] ~ ~ ~ detect ~ ~1 ~ log -1 fill ~ ~1 ~ ~ ~9 ~ air 0 destroy
3. Repeat - Unconditional - Needs Redstone
Execute @e[type=item,name="Birch Wood"] ~ ~ ~ detect ~ ~1 ~ log -1 fill ~ ~1 ~ ~ ~9 ~ air 0 destroy
4. Repeat - Unconditional - Needs Redstone
Execute @e[type=item,name="Jungle Wood"] ~ ~ ~ detect ~ ~1 ~ log -1 fill ~-1 ~1 ~-1 ~1 ~9 ~1 air 0 destroy
5. Repeat - Unconditional - Needs Redstone
Execute @e[type=item,name="Acacia Wood"] ~ ~ ~ detect ~ ~1 ~ log2 -1 fill ~-1 ~1 ~-1 ~1 ~9 ~1 air 0 destroy
6. Repeat - Unconditional - Needs Redstone
Execute @e[type=item,name="Dark Oak Wood"] ~ ~ ~ detect ~ ~1 ~ log2 -1 fill ~-1 ~1 ~-1 ~1 ~9 ~1 air 0 destroy
7. Repeat - Unconditional - Needs Redstone
title @a actionbar TreeCapitator Enabled
Once finished toss your axe down and pick it up to enable TreeCapitator.