Overview
HopperLimiter is a lightweight, performance-focused plugin that enforces a maximum number of hoppers (and hopper minecarts) per chunk. Excessive hoppers are one of the most common causes of server lag - HopperLimiter gives server owners a simple, configurable cap without needing to ban hoppers entirely.
Why Use HopperLimiter?โ
Each hopper checks for items every game tick. Even a few hundred hoppers in a small area can measurably raise your server's TPS cost. HopperLimiter stops the problem at the source by preventing placement beyond a defined threshold and periodically validating existing chunks.
Key Featuresโ
- Per-Chunk Limits - Independent caps for block hoppers and hopper minecarts
- Three Counting Modes - Combined, Separate, or Weighted to fit any server design
- Automatic Overflow Handling - Break or silently remove excess hoppers above the cap
- Periodic Validation - Background scan removes any hoppers that bypassed placement checks
- Permission Bypass - Trusted players/staff can exceed the limit
- Player Notifications - Friendly messages when a placement is blocked
- No Per-Tick Overhead - Event-driven; background validation runs on a configurable interval
- Folia Compatible - Safe for multi-threaded region servers
Supported Versionsโ
| Component | Requirement |
|---|---|
| Minecraft | Paper/Spigot 1.20+ |
| Java | Java 17+ |
| API Version | 1.20 |
| Folia | Supported |
Dependenciesโ
None - HopperLimiter is standalone with zero required dependencies.
Quick Exampleโ
# config.yml - allow 50 combined hoppers per chunk
counting-mode: COMBINED
combined-limit: 50
overflow-action: BREAK
Players placing a 51st hopper will be blocked and notified immediately.
How It Worksโ
- Placement Prevention -
BlockPlaceEventis intercepted; if the chunk is already at its cap, placement is cancelled - Periodic Validation - Every
validation-intervalseconds the plugin scans loaded chunks and removes any excess - Overflow Action - When excess hoppers are found, they are either broken (drops items) or silently removed, based on config
- Bypass - Players with
hopperlimiter.bypasscan always place freely
What's Next?โ
- Quickstart Guide - Minimal setup to get started
- Configuration Reference - All options explained
- Features - Counting modes and overflow handling in depth