- Fixed the sneak check. Now, from the mined wood block, the nearest player will additionally be checked for the absence of a sneak.
- The attached vines to the blocks will be replaced with air when the tree is cut down. This is done to reduce the number of sounds and particles of destroyed vines.
- Added support for new blocks from 1.21.5 drop;
- There is support for the CraftMine Update April Fools snapshot!
- Now the color of the leaves in the non-vanilla biome will be the default as in the plains biome.
Techinal part:
- For non-vanilla biomes, the
#physics_of_falling_trees:biome_leaves_color
function tag has been added, with which you can add colors to custom biomes in your datapacks.- The format of the color defenition command is
execute if biome ~ ~ ~ <biome_id> run return run data modify storage midwut:main output set value <deciaml_color_format = R * 65536 + G * 256 + B>
- The features of the test tree function have been expanded, use the
/function physics_of_falling_trees:temp_tree {state:-1}
command to help.
-
Fixed the transformation of pale leaves into blocks.
Note: I had completely forgotten about the pale garden lol.
-
Now the creaking heart is considered a log and an ordinary tree can fall together, but if the player place the heart himself, it will not be natural and will not be considered a block of tree.
-
Dev note: Now the placement of the leaves block is not individually linked to each id, a macro is used to place the leaves. This means that leaves from mods should be supported by default.
This is a stripped-down version 2.0 that does not include stained leaves!
- Added a new mechanic — falling tree under gravity;
Added support for stained leaves depending on vanilla biomes;- Optimized the transformation of a tree into a falling tree;
- Fixed bugs with the initial falling tree block.
- Added a new mechanic — falling tree under gravity;
- Added support for stained leaves depending on vanilla biomes;
- Optimized the transformation of a tree into a falling tree;
- Fixed bugs with the initial falling tree block.
For devs: there are 5 stained leaves in total (oak, jungle, acacia, dark_oak, mangrove leaves), by default they do not support other models from vanilla blockstates, you need to go to the physical_falling_trees/items/leaves.json
path in the file and change the paths to the models depending on your goals.
- Version 1.6.0 was deleted because there were a lot of bugs and the datapack did not work correctly.
- One datapack for different versions!
- Optimized the tree search;
- Optimization of the game difficulty check;
- Fixed the search for the hardest side;
- Fixed the placing of blocks when transforming a tree into real blocks;
- Fixed a bug where trees considered a layer of snow to be a solid block.
- Support for any blocks, BUT so far without
blockstates
andnbt
, onlyid
.
All you need to do is add the block id to the
nether_logs
/logs
/base
/deform_blocks
/nether_leaves
/leaves
/others
block tags inphysics_of_falling_trees
namespace;
- Added the function of placing a tree for debug:
function physics_of_falling_trees:temp_tree {state:<a number from -1 to 3>}