server/block: grow trees from saplings - #1447
Open
schphe wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
notice: based on #1238 |
Contributor
|
I think you should also add an event handler for when a sapling grows, so the event can be cancelled to prevent the growth or allow you to see where the sapling is going to grow. |
Contributor
I believe this is the wrong approach, if anything we should introduce a handler for RandomTick. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Oak, birch, jungle, spruce, acacia, dark oak, pale oak, cherry, mega spruce, mega jungle (2x2).
Reverse engineered from BDS 1.26.43.1. Field names match the
*_tree_feature.jsonkeys inbehavior_packs/vanilla_*/features; geometry and RNG order come from the decompiled placers:SimpleTreeTrunk::place0xca69060,SimpleTreeCanopy::place0xca68650,SpruceTreeCanopy::place0xca69680,RoofedTreeCanopy::place0xca67c80,AcaciaTreeTrunk::place0xcab6f10,AcaciaTreeCanopy::place0xcab6900,MegaTreeTrunk::place0xca64a10,MegaTreeCanopy::place0xca64880,MegaPineTreeCanopy::place0xca64430,CherryTreeTrunk::place0xca5c0b0,CherryTreeCanopy::place0xca5b620.Matching Bedrock:
base_cluster; jungle hangs vines off trunk and canopy.Leaf decay, from
LeavesBlock::randomTick0xbdb3fd0 a 4-pass distance relaxation over a radius-4 cube, seeding logs 0, leaves -2, everything else -1:findLogsearched depth first over a sharedvisitedset. A cell reached by a long path was marked and rejected on the depth limit, blocking the short path through it. Leaves decayed with the trunk intact. Now breadth first.Woodignored; both count.