Physical Falling Trees

Physical Falling Trees

Mod and data pack

Cut down all the trees! Down with the floating trees!

Server AdventureGame MechanicsUtility

48.7k downloads
130 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Filter loader...
Filter versions...

Changes:

  • The limit of blocks for the falling tree has been increased to 800 (performance may decrease, I plan to rewrite the falling code in future versions);
  • The tree will not start falling if the limit of blocks is reached (in case the tree is very large);
  • Gravity increased by 2x (but still slower than the player);
  • The placement of fallen tree blocks has been improved, now the chance of placement will be higher than the chance of dropping or "holes" appearing;
  • Chat message that the datapack is loaded is disabled.

Bug fixes:

  • Fixed a bug with the transition to the free fall of thick trees;
  • Fixed bugs related to vertical falling.
  • Just supports up to 1.21.7
  • Description of packs improved
  • 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!

Techinal part:

  • The features of the test tree function have been expanded, use the /function physics_of_falling_trees:temp_tree {state:-1} command to help.
  • 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.1 that does not include stained leaves!

  • Fixed a error in the logs: Unknown biome, defaulting to plains
  • Fixed a error in the logs: Unknown biome, defaulting to plains

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 and nbt, only id.

All you need to do is add the block id to the nether_logs/logs/base/deform_blocks/nether_leaves/leaves/others block tags in physics_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>}

  • Updated to 1.20.5 and 1.20.6.
  • Fixed a bug, at the beginning of the game until you hit the shift, you couldn't make the tree fall.
  • Fixed a bug, at the beginning of the game until you hit the shift, you couldn't make the tree fall.

Project members

Antoha256M

Owner

Details

Published 2 years ago
Updated 7 days ago