介绍
No Crop Trample
A lightweight mod for Fabric and NeoForge that prevents farmland from being trampled and reverted to dirt when players or mobs land on it.
Demo
The same test with each setting off and on.
| | Off | On |
|—|—|—|
| Player |
|
|
| Mob |
|
|
| Empty farmland |
|
|
Empty farmland protection only affects unplanted farmland; planted farmland follows the player and mob settings.
Features
- Prevents farmland blocks from reverting to dirt when entities land on them.
- Player and mob trampling can be toggled independently.
- Optional protection for empty (unplanted) farmland.
- No tick handlers, no entity scanning — a Fabric Mixin on Fabric, a native event listener on NeoForge.
- Works server-side only; client install is optional (adds a config screen via ModMenu on Fabric, or NeoForge’s built-in mod config screen).
Commands
Requires operator permission level 2.
| Command | Description |
|———|————-|
| /nocroptrample status | Show current settings. |
| /nocroptrample empty <on\|off> | Toggle protection for empty farmland. |
| /nocroptrample player <on\|off> | Toggle player trampling protection. |
| /nocroptrample mob <on\|off> | Toggle mob trampling protection. |
| /nocroptrample reload | Reload the config file from disk. |
Configuration
Config file: config/nocroptrample.json
{
"preventEmptyTrampling": true,
"preventPlayerTrampling": true,
"preventMobTrampling": true
}
Requirements
- Minecraft 26.3+
- Fabric Loader 0.16+ and Fabric API, or NeoForge 26.3+
- Java 25+
Links
常见问题
No Crop Trample 支持哪些 Minecraft 版本?
No Crop Trample 支持 Minecraft Java 版 1.20–26.3,共 23 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
No Crop Trample 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分