
No Crop Trample
Stop players and mobs from destroying your precious crops!
- Загрузки
- 9K
- Подписчики
- 10
- Обновлён
- 22 июня 2026 г.
- Лицензия
- MIT
Опубликован 19 декабря 2025 г.
No Crop Trample 🌾
Stop players and mobs from destroying your precious crops!
No Crop Trample is a lightweight utility mod that prevents farmland from being trampled and converted to dirt when players or mobs jump on it.
✨ Features
🛡️ Anti-Trample Protection
Prevents farmland blocks from being destroyed when entities land on them. Your crops stay safe!
⚙️ Granular Control
Configure player and mob trampling independently:
- Want players to trample but not mobs? Done.
- Want mobs to trample but not players? Also done.
- Want total protection? Default behavior!
🪶 Lightweight
Uses efficient Mixins with virtually zero performance impact. No tick handlers, no entity scanning.
🖥️ Server-Side Compatible
Works on servers without requiring client installation. (Client recommended for ModMenu config GUI)
📋 Commands
All commands require Operator (OP) permission level.
| Command | Description |
|---|---|
/nocroptrample |
Show current status. |
/nocroptrample player <on|off> |
Toggle player trampling prevention. |
/nocroptrample mob <on|off> |
Toggle mob trampling prevention. |
/nocroptrample reload |
Reload configuration. |
📁 Configuration
Config file: config/nocroptrample.json
{
"preventEmptyTrampling": true,
"preventPlayerTrampling": true,
"preventMobTrampling": true
}
📦 Requirements
- Minecraft 1.21+
- Fabric Loader 0.16+
- Fabric API
🔗 Links
Ченджлог
1.5-26.2Релиз26.2 · 22 июня 2026 г.
🐛 Bug Fixes
/nocroptrample status and /nocroptrample empty were showing wrong values
The Empty farmland trampling prevention row in the status output was actually displaying the player prevention flag's value. Similarly, /nocroptrample empty (with no argument) was showing the player setting instead of its own. Both now display the correct value.
Empty farmland protection had no effect in certain configurations If Empty trampling prevention was ON but both Player prevention and Mob prevention were OFF, trampling still went through. Empty farmland protection now works independently of the player and mob settings.
Farmland under grown pumpkin/melon stems was incorrectly treated as empty Once a pumpkin or melon fruit grows, the stem block changes type — and the mod was no longer recognizing it as a crop, leaving the farmland beneath unprotected. Fruit-bearing stems are now correctly detected.
OP permission level check was not enforcing the required level
Commands that modify settings (e.g. /nocroptrample player on) were supposed to require OP level 2 (Gamemaster), but accepted any OP regardless of their assigned level. Only level 2+ operators can now use these commands.
Upgrading from very old versions could silently disable empty farmland protection Users upgrading from before v1.2.0 (when the empty trampling setting didn't exist yet) could have the setting incorrectly read as disabled because the key was absent from their config file. This is now handled correctly.
1.4-26.2Релиз26.2 · 22 июня 2026 г.
1.4 — Bug Fix
Fixed: Empty farmland protection setting not saving If you had "Empty Farmland Protection" turned off, the setting was silently reset back to on every time you restarted the game. Your preference is now saved correctly.
1.3-26.2Релиз26.2 · 21 июня 2026 г.
[1.3-26.2] - 2026-06-21
Compatibility
- Minecraft 26.2 Support — Updated to Minecraft 26.2, Fabric Loader 0.19.3, and Fabric API 0.152.2+26.2.
1.2.1Релиз26.1, 26.1.1, 26.1.2 · 12 апреля 2026 г.
[1.2.1] - 2026-04-06
Minecraft 26.1 Compatibility
1.2.0Релиз26.1-snapshot-11, 26.1-pre-1, 26.1-pre-2 · 16 марта 2026 г.
[1.2.0] - 2026-03-17
New Features
- Empty Farmland Protection — Added a new option to prevent trampling on unplanted farmland. When enabled, walking over empty farmland (with no crops or stems above) won't turn it back to dirt. Configurable via Mod Menu or the
/nocroptrample empty [on|off]command. - Stem Block Detection — Pumpkin and melon stems are now recognized as planted crops, so farmland with stems is no longer considered "empty."
Bug Fixes
- Fixed empty trampling toggle button — The Mod Menu button for "Empty Trampling" was incorrectly toggling the player trampling setting instead of the empty trampling setting.
- Fixed Mod Menu button layout — Buttons are now properly spaced and arranged in the config screen.
Technical
- Added
/nocroptrample empty [on|off]subcommand - Added
StateNameenum for cleaner command state handling - Config file now includes
preventEmptyTramplingoption (defaults to enabled)
Credits
- Thanks to VacantTarnished for contributing the empty farmland trampling prevention feature!
1.1.0Релиз26.1-snapshot-5 · 2 февраля 2026 г.
NoCropTrample v1.1.0
✨ What's New
This release focuses on code quality improvements and better maintainability for future updates. While there are no new features visible to players, this update makes the mod more reliable and easier to maintain going forward.
🔧 Technical Improvements
Performance & Reliability
- Improved configuration management with better error handling
- More efficient command processing
- Cleaner code structure for better performance
Developer Experience
- Complete codebase refactoring following clean code principles
- Comprehensive documentation added throughout the code
- Eliminated code duplication for easier maintenance
- Better organized command system
Under the Hood
- Extracted all magic values to named constants
- Encapsulated configuration with proper getter/setter methods
- Modularized command registration for better readability
- Added extensive JavaDoc documentation
📋 Compatibility
- Minecraft Version: 1.21 (26.1-snapshot-5)
- Fabric Loader: 0.16.5+
- Fabric API: 0.142.3+26.1
⚙️ For Users
No action required! This is a drop-in replacement for v1.0.x. All existing configurations and commands work exactly the same way.
/nocroptrample- View status/nocroptrample player [on|off]- Toggle player trampling/nocroptrample mob [on|off]- Toggle mob trampling/nocroptrample reload- Reload config
🐛 Bug Fixes
- Improved error messages when config fails to load
- Better handling of edge cases in configuration
📝 Full Changelog
For detailed technical changes, see the GitHub Release
Download: Compatible with Minecraft 1.21 Fabric Support: GitHub Issues
Комментарии
Загружаем…