promotional bannermobile promotional banner

TreeSnap

Instantly harvest entire trees with automatic replanting for Minecraft.

File Details

TreeSnap.mcpack

  • R
  • Jan 5, 2026
  • 26.78 KB
  • 8.5K
  • 1.21.130

File Name

TreeSnap.mcpack

Supported Versions

  • 1.21.130

TreeSnap v1.0.0 - Initial Release

Features

  • Instant tree harvesting when breaking a single log block
  • Automatic detection of all connected logs using breadth-first search algorithm
  • Automatic leaf removal within 7-block radius of logs
  • Full vanilla loot generation with proper drop rates
  • Fortune enchantment support for increased sapling and apple drops from leaves
  • Silk Touch enchantment support for preserving leaf blocks
  • Automatic sapling replanting at tree base location
  • Support for all vanilla tree types: Oak, Spruce, Birch, Jungle, Acacia, Dark Oak, Mangrove, Cherry, Crimson, and Warped
  • Cross-platform compatibility: Windows, Android, iOS, Xbox, PlayStation, Nintendo Switch
  • Performance optimizations with configurable limits (512 blocks max, 32 block search radius)
  • Error handling for chunk loading and edge cases
  • Console logging for debugging purposes

Technical Details

  • Requires Minecraft Bedrock Edition 1.21.130 or newer
  • Optimized BFS algorithm prevents stack overflow on large trees
  • Efficient position tracking with visited set to prevent duplicate checks
  • Proper loot table integration respects all vanilla mechanics

Known Limitations

  • Maximum tree size: 512 blocks (configurable)
  • Maximum search distance: 32 blocks (configurable)
  • Logs must be directly connected (no gaps)
  • Tool durability consumed only for first log break
  • Custom modded tree blocks not supported