Check out the mod that I posted a link to. It will surely help you out. It has everything you want to add and more.
Yup, have already checked that. The way of how it detects trees is indeed are clever. However, I don't think I will want to implement it that way. Since it might comes up with various different issue, making it unstable.
And actually, I tried to use my function into my survival world. And it's very handy to have it not only to be used for chopping trees. So maybe I may as well want to let it like how it is right now.
But still, I'm very exited for minecraft 1.13 update. And maybe there will be a way for us to detect player placed blocks and non-player placed blocks. Everything about commands will be changed, so it's going to be interesting regarding how development will goes.
Anyway, thank you again for your suggestion, will be consider that to my bucket to do list. I might try to tweak the idea here and there for a bit to improve it.
Quote from BoomBap»
I think it would be good if this worked only for naturally generated trees and not for player placed wood.
Now this is where the tricky part comes. When I was first created this system, that was the first idea which comes to mind. However, as far as my skill goes, I couldn't find a way for me to differentiate between a naturally grown trees with players placed blocks. So maybe this mechanic may come in the future, but I don't think that future is near
Thanks for the suggestion, it is a great idea. Hope I can find a way to work around it
Also chopping the bottom block should break all the logs above it, but not below it to make it more realistic/less op.
Thanks for your feedback, it's fully appreciated.
Yes, initially the function were also only breaks logs above it, in addition to the one adjacent to it. However the more I used it, somehow the more it annoys me. Therefore at last I decided to add it anyway . Though it is possible to disable it by directly changing the code from the function if.
And I also was considering to made a feature to let user turning on/off the bottom breaking part. However, this leads back to the first problem on how I may let user to configure it. Since function is not really like a programming language that have much freedom.
Thank you again though for your suggestion, I will try my best to comes up with a solution.
I guess this post fit to both survival and redstone/mechanics, so I will post it twice.
I just created a system for automatic wood/log chopping using function.
All you need to do is chop 1 wood/log. Then all of the adjacent and diagonal log/wood next to it will automatically chopped for you.
This isn't really meant to be used for real survival world as I haven't put a way to disabled it. However if you really want it, you could simply copy the function to your own world. And if you are good at commands, you can tweak it as easy as it seems to add the on/off option for it.
And that brings me to the next point. I have been thinking for the best way to implement on/off option, but can't think of a good way to do it. I have thought to use shift and trigger, however it isn't really a practical way to do it. Therefore if any of you have a suggestion, feel free to point it out.
There is a world download if you want to check it out. Don't forget to give a feedback and what you think of it