Diagonal Leaves
Alters leaves' distance check's logic, allowing diagonal connections, too.
介绍
Diagonal Leaves
This mod is a utility for terrain mod-makers or map-makers which allows leaves to connect diagonally, preventing decay in scenarios like this without leaves being persistent:
\
\

\
\
In vanilla (shown with red) the leaves never find any neighbours, so their distance is seven, while with the mod (shown in green) the distance is checked and increments by one for each axis-offset, meaning face connections increase distance by one, edge connections by two and corner connections by three.
Ok, cool but why, though?
Vanilla minecraft can be very annoying when it comes to creating naturally generating custom trees which stray from the vanilla style and more towards an airier, more realistic style.\
Since vanilla only checks and propagates distance checks to leaves that are only face-adjacent, edge/vertex-adjacent leaves will be left out, which means they will decay unless set as persistent, but that means leaving the player with the task of manually cleaning them up.\
This mod fixes this, although at the expense of making the loop run on all the 26 blocks surrounding the leaves instead of just the 6 face-adjacent ones.
Compatibility
All mods which implement leaves using the LeavesBlock class (or extending it without overriding its placement, removal and update methods) and logs based on the RotatedPillarBlock class (same caveat here if it extends it) properly tagged as “minecraft:logs” should work out of the box.
NOTE: This mod changes vanilla behaviour significantly. It may cause performance hits, and some of your builds (like leafstone) may break! You have been warned.
常见问题
Diagonal Leaves 支持哪些 Minecraft 版本?
Diagonal Leaves 支持 Minecraft Java 版 1.21–26.3,共 6 个版本,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。
Diagonal Leaves 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分