Tree Breaker
In order to make your custom trees compatible with the Essentials Add-on's Tree Breaker feature, you need to add specific tags to your tree blocks.
INFO
Contents of this page are from the Unlinked discord.
Tree Log Tag
This tag should be added to all log blocks of your custom tree. Replace <group> with the appropriate group name for your tree type.
ulkd_ess:tree_log_<group>Tree Leaves Tag
This tag should be added to all leaf blocks of your custom tree. Again, replace <group> with the appropriate group name.
ulkd_ess:tree_leaves_<group>Tree Sapling Tag
This tag should be added to all sapling blocks of your custom tree. Replace <group> with the appropriate group name.
ulkd_ess:tree_sapling_<group>Algorithm
The basic algorithm for determining whether the broken log block is part of a tree is as follows:
- Go through all the blocks upwards from the broken log block.
- If you find a leaf block with the corresponding
ulkd_ess:tree_leaves_<group>tag, consider it a tree.
Example
For an oak tree, you would add the following tags:
ulkd_ess:tree_log_oak for minecraft:oak_logulkd_ess:tree_leaves_oak for minecraft:oak_leavesulkd_ess:tree_sapling_oak for minecraft:oak_sapling
For a custom tree, you would add the following tags:
ulkd_ess:tree_log_wiki:my_tree for wiki:my_logulkd_ess:tree_leaves_wiki:my_tree for wiki:my_leavesulkd_ess:tree_sapling_wiki:my_tree for wiki:my_sapling
