Skip to content

Prevent template trees from replacing protected blocks - #51

Open
wtylr wants to merge 1 commit into
JDKDigital:dev-1.21.0from
wtylr:protect-template-tree-placement
Open

Prevent template trees from replacing protected blocks#51
wtylr wants to merge 1 commit into
JDKDigital:dev-1.21.0from
wtylr:protect-template-tree-placement

Conversation

@wtylr

@wtylr wtylr commented Aug 18, 2026

Copy link
Copy Markdown

Changes

Added a productivetrees:tree_replaceable structure processor for template-backed trees.

Template trees now place blocks only where the destination is air or tagged minecraft:replaceable_by_trees. Obstructing blocks are preserved while the rest of the tree continues to grow.

Why

Template-backed multi-block trees previously placed their structures without checking the blocks already present at each destination. This allowed them to overwrite normally protected blocks, e.g. bedrock.

Procedurally generated trees already follow Minecraft’s tree-replacement rules; this change gives template trees equivalent behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant