Falling Tree Mod — Reference
Core Mechanics
The primary mechanic of FallingTree is the 'Felling' action. When a player breaks a log block that is part of a valid tree structure, the mod scans for connected logs and leaves to destroy them simultaneously.
Felling Logic
- Tree Detection: The mod identifies a 'tree' as a vertical column of logs. It can distinguish between natural trees and player-placed blocks based on configuration settings.
- Tool Requirement: By default, an axe is required to trigger the felling effect. Breaking a log with a bare hand or a non-axe tool will only break that specific block.
- Sneaking Interaction: The mod includes a 'Sneak to Disable' (or 'Sneak to Enable') feature. By default, holding the sneak key (Shift) while chopping will prevent the tree from falling, allowing players to harvest single blocks for building.
- Leaf Decay: When a tree is felled, the mod can be configured to instantly destroy the associated leaves, dropping saplings and sticks as if they had decayed naturally.
Durability and Balancing
To maintain game balance, FallingTree applies the following rules: * Durability Loss: The tool used to chop the tree loses durability for every single log block broken in the process. If the tool's durability reaches zero during the process, the felling stops. * Mining Speed: The time it takes to break the initial log can be dynamically adjusted based on the total number of logs in the tree, simulating the effort required to take down a larger structure.
Items and Blocks
FallingTree does not add new items or blocks to the game. Instead, it enhances the functionality of existing vanilla and modded items.
Affected Tools
| Tool Type | Effect |
|---|---|
| Axes | Triggers the felling mechanic. All tiers (Wood to Netherite) are supported. |
| Modded Axes | Any item tagged under minecraft:axes or forge:tools/axes will trigger the effect. |
Affected Blocks
| Block Category | Behavior |
|---|---|
| Logs | The primary trigger. Breaking one breaks all connected logs of the same type. |
| Leaves | Automatically destroyed when the parent tree is felled, provided the breakLeaves config is enabled. |
| Modded Logs | Compatible with blocks tagged as minecraft:logs. |