
A small mod that does one thing: stops farmland from reverting to dirt when entities land on it. No more destroyed wheat fields from a careless jump, a wandering zombie, or a stray arrow.
Targets Minecraft 26.1.x on both Fabric and NeoForge.
Minecraft 26.1 is brand new and the popular legacy trample-prevention mods haven't ported yet. This fills the gap with a minimal, fast-loading implementation — no new blocks, no new items, just the fix.
turnToDirt(...) call inside FarmlandBlock.fallOn, using MixinExtras' @WrapOperation (bundled with Fabric Loader, no extra dependency).BlockEvent.FarmlandTrampleEvent and cancels it.Both paths route through the same config-aware decision, so per-entity-type toggles (player-only, mob-only, projectile-only) can be added in a future release without breaking changes.
Edit config/nocroptramplelite.json (created on first launch):
{
"preventTrampling": true
}
| Key | Default | Notes |
|---|---|---|
preventTrampling |
true |
When true, no entity can trample farmland. Set false to restore vanilla behaviour. |
Restart Minecraft (or the dedicated server) after editing for changes to take effect.
Works automatically with:
FarmlandBlock — inheritance carries the protection through.fallOn but calls super.fallOn(...) — super call routes back into the protected path.Does not affect:
fallOn with its own trample logic (rare).FarmlandBlock at all.CC0-1.0 — public domain, do whatever you want with it.