I have no experience with coding what so ever. Looking for a little guidance. I am wanting to create a nice plug-in to eventually take full control of the trees characteristics in your world. My first attempt is No Floating trees. Where the wood block of a tree drops similar to sand when you break the lower block. VanishedKevin added this feature to his plug-in for me awhile back. I wanted to create a similar plug-in, but without requiring src file manipulation. Here is what I have so far. https://github.com/Jemrada/TreeControl/blob/master/TreeControl.php I am stuck at the moment.
What functions should I ideally use to cause a block above to drop down? Wood id is 17. Would I need to use "playerBlockBreak" or "playerBlockAction", then "blockUpdateAround" or "blockUpdate" to locate wood and move it down? Is there a function not listed that would work better?
When a lower wood block is destroyed. The wood blocks above will drop one level. Similar to sand blocks when you break a lower level sand.
Essentials did this by checking if the block above is also wood, if so it will replace that block with air and place it back one place down, then it checks if the block above is wood,.. and so on
What function was used? Ok, I will look at his older versions. The latest one don't seem to have it now.