No Crop Trample 图标

No Crop Trample

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.2.2+mc26.2
本资源为搬运资源,原资源地址: https://modrinth.com/mod/no-crop-trample-lite
资源信息

Minecraft 版本: 26.2

平台: neoforge

资源介绍

No Crop Trample

No Crop Trample

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.

Why this mod exists

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.

What it does

  • Disables farmland trampling for all entities by default — players, mobs, projectiles.
  • One simple JSON config toggle if you want to turn it off.
  • Fall damage still applies. Only the farmland-destruction path is skipped.

How it works under the hood

  • Fabric: a tiny mixin wraps the turnToDirt(...) call inside FarmlandBlock.fallOn, using MixinExtras' @WrapOperation (bundled with Fabric Loader, no extra dependency).
  • NeoForge: subscribes to the built-in 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.

Configuration

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.

Compatibility with modded crops

Works automatically with:

  • Modded crops planted on vanilla farmland — most common case (Farmer's Delight, most magic-crop mods, etc.).
  • Modded farmland that extends vanilla FarmlandBlock — inheritance carries the protection through.
  • Modded farmland that overrides fallOn but calls super.fallOn(...) — super call routes back into the protected path.

Does not affect:

  • Modded farmland that fully replaces fallOn with its own trample logic (rare).
  • Custom "farmland" blocks that don't extend FarmlandBlock at all.
  • Pot-style growers (Botany Pots, Garden Cloches, etc.) — they don't have trampling to begin with.

Requirements

  • Minecraft 26.1.x
  • Java 25
  • Fabric Loader 0.18.4+ with Fabric API, or NeoForge 26.1+

License

CC0-1.0 — public domain, do whatever you want with it.

Source

https://github.com/kestalkayden/no-crop-trample-lite

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
HunterSMP-Mod

价格:0 墨喵币
下载量:0

查看详情
Fletchery

价格:0 墨喵币
下载量:0

查看详情
Conquest Of Hunterra Modpack

价格:0 墨喵币
下载量:0

查看详情
Lost Mazes

价格:0 墨喵币
下载量:0

查看详情