TreeMaintainer
A Minecraft Spigot plugin that automatically maintains trees by replanting saplings and removing floating parts, creating a more natural and tidy environment.
- Automatically replants saplings after tree cutting
- Tool-aware (only works with axes)
- Respects tool efficiency enchantments
- Natural leaf decay simulation
- Supports all vanilla trees
- Removes floating logs and leaves
- Fully configurable behavior
- Per-tree type settings
Installation
- Download the latest release
- Place the .jar in your server's `plugins` folder
- Restart your server
- Configure the plugin in the `config.yml` file
Usage
The plugin works automatically when players cut down trees with axes. No player action or commands are required. When a player cuts a tree with an axe:
- The plugin detects the tree type
- After the tree is cut, a sapling is automatically replanted
- Any floating logs or leaves are cleaned up naturally
Configuration
The plugin's configuration file (config.yml) is organized into logical sections:
Code (YAML):
# Master switch to enable or disable the plugin
enabled
: true
# Auto-replant settings
replanting
:
# Enable automatic sapling replanting
enabled
: true
# Delay in ticks before replanting (20 ticks = 1 second)
delay
: 5
# Floating tree parts cleanup
cleanup
:
# Enable removal of floating logs and leaves
enabled
: true
# Maximum distance to check for connected blocks
max-distance
: 10
# Tool settings
tools
:
# Only trigger the plugin when trees are cut with axes
require-axe
: true
# Respect tool efficiency enchantments
respect-efficiency
: true
# Enable/disable specific tree types
tree-types:
oak
: true
spruce
: true
birch
: true
acacia
: true
dark_oak
: true
mangrove
: true
cherry
: true
jungle
: false
# Debug mode for troubleshooting
debug
: false
For detailed configuration options, see the comments in the generated config.yml file.
Made with ❤️ by McKenzieJDan