TimberChopMod
TimberChopMod is a convenient addition that dramatically simplifies the wood harvesting process in the game. With just one swing of an axe, you can fell an entire tree along with all connected trunk blocks.
🪓 How It Works
Function Activation
The felling effect is activated when a player on the server destroys any block with the LOGS tag while holding an item of type AxeItem. It's important to note that the mod works exclusively on the server side.
Connected Blocks Search
The modification performs an area fill search, checking all adjacent log blocks in a 3×3×3 cube (including diagonal directions). All connected blocks with the LOGS tag are collected.
Wood Destruction
All detected log blocks are sequentially destroyed in a loop. Corresponding items drop, and the destruction process is registered with reason code 512.
Foliage Cleanup
After destroying each log block, the mod checks the surrounding space within a 2-block radius for blocks with the LEAVES tag and also destroys them, simulating natural leaf decay.
📥 Installation
-
Fabric API: Make sure you have Fabric Loader and Fabric API installed, as the mod is specifically created for this platform.
-
JAR File: Place the
timberchopmod.jarfile in your game'smodsfolder. -
Launch: Start Minecraft by selecting the Fabric profile.