I have written a plugin to get rid of tree trunks at once… Only now I do not know what to do next. I want the leaves on the tree immediately go away and the whole tree goes away when I break down a log. (I'm currently programming on a SpeedUHC).
It would be nice if you could help me there.
Where is the problem?
I also want to get rid of the foliage in one fell swoop but I do not know exactly how to do it.
How do you get the wood away?
If you get rid of the wood, the leaves should not be a problem anymore…
Otherwise, just make sure that with every item that is a block of wood, it is checked whether the blocks are foliage blocks outside and then distanced. I did something like that… But that was a while ago
But how do I do that leaves go away with what code?
There's something called YouTube tutorial
Something you can't find on YT.
Why do you get wood but no leaves?
Just as I described above.
/ fill ~ 3 ~ 3 ~ 3 ~ -3 ~ -3 ~ -3 air replace #leaves
Just do it on every block of wood:
/ execute at @e [type = item, nbt = {Item: {id: "minecraft: spruce_log"}} run fill ~ 3 ~ 3 ~ 3 ~ -3 ~ -3 ~ -3 air replace #leaves
You have to do that for every kind of wood
But how do you do that, you have not said that yet, then I can help you better
I think I have actually seen something like that in the Richtunng, you just have to know what to look for.
But the answer is actually not very helpful…
I ask myself too.