介绍
TimberChopMod
TimberChopMod is a simple yet powerful mod that, with a single swing of your axe, fells an entire “tree-like” cluster of log blocks and then removes the leaves around each of them.
🔨 How it works?
Trigger
When a player on the server (server-side only) breaks any block tagged LOGS while holding an AxeItem, the chop effect is activated. Instead of allowing the normal single-block break, the mod intercepts the event, cancels it, and performs its own “timber” logic.
Flood-fill in 3×3×3
The mod uses a breadth-first search through all adjacent log blocks in a 3×3×3 cube (including diagonal neighbors) from the original block, gathering every connected block with the LOGS tag into a set.
Breaking the logs
Once all connected log blocks are collected, the mod loops through that set and breaks each one server-side, causing them to drop their items. Because the original single-block break was canceled, none of the logs break normally; everything is removed in one instant sweep. The break reason code used is 512, so it behaves like a player-initiated break for drops and statistics.
Leaf cleanup
After identifying all log positions, the mod then searches outward from each log block to a radius of 2 blocks in every direction to find any blocks tagged LEAVES. All found leaf blocks are broken immediately (also using reason code 512), simulating natural leaf decay in a single pass.
⚙️ Installation
Fabric
-
1.0.1-fabric.jar
-
Install Fabric Loader (0.16.14) & Fabric API (0.123.0+1.21.5) for Minecraft 1.21.5.
-
Drop
timberchop-1.0.1-fabric.jarinto yourmods/folder.
-
-
1.0.2-fabric.jar
-
Install Fabric Loader (0.16.14) & Fabric API (0.126.0+1.21.6) for Minecraft 1.21.6-pre3.
-
Drop
timberchop-1.0.2-fabric.jarinto yourmods/folder.
-
Forge (1.0.1-forge.jar)
-
Install Forge Loader 55.0.21+ for Minecraft 1.21.5.
-
Drop
timberchop-1.0.1-forge.jarinto yourmods/folder.
常见问题
TimberChopMod 支持哪些 Minecraft 版本?
TimberChopMod 支持 Minecraft Java 版 1.21.5,可用的加载器:Fabric / Forge。下载时注意选择和你游戏版本一致的文件。
TimberChopMod 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分