Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
📖 About
So, this datapack really adds physical falling trees! Now, with any felled tree, it will try to fall, causing damage to all living entities in its path.
Features:
- Trees fall to the heavier side, but if the center of gravity is in the center of the tree axis, then the tree falls towards the player.
- The heavier side is calculated by the relative weight for the cardinal directions. The deforming blocks have 1, all the others have 3.
- The tree causes damage depending on it's falling speed.
- If there are bees in the nest of a cut tree, they will get angry at you.
- When the tree has fallen, the model will be lying for half a second before transforming into real blocks. But if a tree has been falling for less than half a second after being cut down, then it transforms instantly.
- Trees collide with the world around them and can rebound on impact before settling.
- Foliage bends and compresses against obstacles as the tree falls.
- Fallen trees become real blocks again, with logs rotated to match their landing.
The following features are available in version 3.0.0 and later:
- Large trees are prepared over several ticks to reduce lag before they start falling.
- If several small trees are cut down at the same time, they can start falling in the same tick.
- Trees can fall beyond coordinates ±2147483 on the X and Z axes.
- Additional blocks in modded trees can keep their saved block states after falling.
▶️ Demonstration
🧩 Add-ons
Create a separate datapack for your compatibility add-on. The examples below target Physical Falling Trees 3.0.0 for Minecraft 26.3. Replace my_addon and example_mod with your own namespaces, and keep "replace": false in shared tags.
Custom blocks
Modded logs and leaves are detected automatically when they belong to #minecraft:logs and #minecraft:leaves. They use the existing log and leaf handlers, including log-axis rotation.
To include additional blocks attached to a tree, add them to #physical_falling_trees:others in your add-on:
data/physical_falling_trees/tags/block/others.json
{
"replace": false,
"values": [
"example_mod:tree_fruit",
"example_mod:tree_growth"
]
}
These blocks can be discovered as part of a connected tree. Blocks without a dedicated handler are restored with the minecraft:block_state properties saved in their Silk Touch drops. They must drop their own block item when harvested this way. This does not provide automatic restoration of arbitrary block-entity NBT.
Leaf colors in custom biomes
Falling leaves rendered through the pack's tinted item model use a color selected during tree preparation. An add-on can supply this color through the #physical_falling_trees:biome_leaves_color function tag.
Register your function:
data/physical_falling_trees/tags/function/biome_leaves_color.json
{
"replace": false,
"values": [
"my_addon:leaf_color"
]
}
Then check the biome at the current block position, write the foliage tint to storage midwut:main temp.leaves_color, and return success:
data/my_addon/function/leaf_color.mcfunction
execute unless biome ~ ~ ~ example_mod:autumn_forest run return fail
data modify storage midwut:main temp.leaves_color set value 5614131
return 1
The color is a packed RGB integer: 5614131 represents #55AA33 (R × 65536 + G × 256 + B). Replace it with the foliage color of your biome.
Return 1 after supplying a color, even if the stored value was already the same. Return fail for biomes your add-on does not handle, allowing the standard color lookup to run when no add-on supplies a color. Keep the current execution position so the biome check applies to the leaf being converted.
For larger biome packs, use the approach demonstrated by PFT-Coloring datapack: a dispatcher checks which biome group applies, calls its color lookup, and returns success after a match. Biome groups can be defined in data/my_addon/tags/worldgen/biome/. For version 3.0.0, color handlers must write to temp.leaves_color.
This hook supplies tint values for the existing item model. Adding a new tinted leaf type also requires a matching resource-pack model definition.
🔗 Extra Links
You can leave a comment on the PMC page!
Russian discord server of datapackers / Русский дискорд сервер датапакеров
Если вы датапакер, ищите адекватной помощи, полезных ресурсов и возможности поделиться проектами, то вам на СвинСоюз: Датапаки! Это сервер-ответвление от изначального заброшенного сервера ZeroCaty "СвинСоюз". Сейчас мы не имеем к нему никакого отношения.




