Auto Log/Wood Chop

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

I have been using a mod for this function in my game for a long time already https://minecraft.curseforge.com/projects/treecapitator
I really find it very dull and unrealistic chopping wood block by block. Tho this mod makes getting junglewood kinda OP But yeah, the mod has all the configs you want to add and more so check it out and perhaps you can improve yours also. I think it would be good if this worked only for naturally generated trees and not for player placed wood. Also chopping the bottom block should break all the logs above it, but not below it to make it more realistic/less op. Good job anyway, if the treecapitator should ever be discontinued, I hope your mod will keep the logging life going!

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.

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

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

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. Here's how the mod detects trees:
"Some notes on how it works:Tree Detection
- Trees are determined by looking at the number of leaf blocks that neighbor the top block of a vertical column of logs.
- If the top block has 3 or more neighboring leaf blocks the code considers that column of logs to be a tree.
- If the top block does not have 3 neighboring leaf blocks the code will default to normal block breaking."

I'm not telling you to copy his content, but I'm sure it will give you ideas and help you improve

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.

Yeah, the way I use that function, if there is some self-placed wood that I want to chop down in one go, I will just place 3 leaf block to the top And overall it works absolutely fine. I have used it for around 3 years. I'm also looking forward to the new updates. Can't wait to build something totally new with new mechanics