promotional bannermobile promotional banner

fortunecropfix

Fix the issue where the Fortune enchantment does not work on wheat and beetroot drops.

Description

Fortune Crop Fix fixes the vanilla bug where Fortune does not affect wheat and beetroot drops properly.

In vanilla Minecraft, harvesting wheat or beetroot with a Fortune-enchanted tool only grants extra seeds. The main crop (wheat / beetroot) always drops exactly 1 item regardless of Fortune level, which is inconsistent with how Fortune works on other blocks. This mod corrects this behaviour so the main crop drops are also boosted by Fortune.

Mechanics

  • Main crop drops (wheat, beetroot): now use binomial_with_bonus_count with extra=3, probability=0.5714286. Higher Fortune levels raise the chance of getting multiple main crops.
  • Seed drops: changed to a uniform distribution between 1–2 items. Fortune no longer stacks on seeds to prevent overstacked rewards.
  • All other crop behaviours (planting, growth, bone meal acceleration, etc.) remain unchanged.

Implementation

This mod is built around a Data Pack, overriding vanilla block loot tables: data/minecraft/loot_tables/blocks/wheat.json data/minecraft/loot_tables/blocks/beetroots.json

The Java entry class exists only as a placeholder for mod loading and contains no runtime logic. This keeps the implementation lightweight and close to vanilla behaviour.

Compatibility

Only loot tables are replaced; no vanilla classes are patched. Safe to run alongside other mods.

The package name amassofmud comes from my nickname "一团泥浆". CurseForge would not accept this nickname, so I use its pinyin form as my author name instead.




功能简介
Fortune Crop Fix 用于修复原版游戏中小麦与甜菜根的时运(Fortune)掉落缺陷。
在原版机制中,使用带有时运附魔的工具收获小麦或甜菜根时,时运只会额外增加种子的数量,而主作物(小麦、甜菜根)无论时运等级多高都固定掉落 1 个,与时运附魔对其他方块的加成逻辑不一致。本模组修正了这一问题,使主作物的掉落也能正确受到时运加成。
机制说明
主作物(小麦、甜菜根)掉落改为受时运加成:采用二项分布附加计数(binomial_with_bonus_count),参数 extra=3、probability=0.5714286,时运等级越高,获得多个主作物的概率越大。
种子掉落改为固定 1~2 个的均匀分布(uniform),不再重复叠加时运,避免收益重复计算。
不改变作物的种植、生长、骨粉催熟等其他任何行为。
技术实现
本模组以数据包(Data Pack)为核心,通过覆盖原版的方块战利品表实现修复:
`data/minecraft/loot_tables/blocks/wheat.json`
`data/minecraft/loot_tables/blocks/beetroots.json`
Java 入口类仅作为模组加载占位,不包含额外运行逻辑,因此实现轻量、与原版行为高度一致。
兼容性
模组仅替换战利品表,不修改任何原版类,可与其他模组安全共存。

包名的amassofmud是我的昵称(一团泥浆),但是CurseForge不许这样的昵称通过,我只好使用拼音作为我自己的昵称了。

fortunecropfix Team

profile avatar
  • 3
    Projects
  • 26
    Downloads

More from YiTuanNiJiang

  • magicenchant project image

    magicenchant

    Add new "Magic Damage" enchantment, which converts melee and ranged weapons to deal pure magic damage.

    • 10
    • November 9, 2026
  • arrowcrop project image

    arrowcrop

    Arrow Crop adds a unique new crop: the arrow crop. Players can plant regular arrows into farmland just like sowing seeds. When fully grown, the crop yields more arrows, offering a renewable way to obtain arrows.

    • 9
    • October 30, 2026
  • magicenchant project image

    magicenchant

    Add new "Magic Damage" enchantment, which converts melee and ranged weapons to deal pure magic damage.

    • 10
    • November 9, 2026
  • arrowcrop project image

    arrowcrop

    Arrow Crop adds a unique new crop: the arrow crop. Players can plant regular arrows into farmland just like sowing seeds. When fully grown, the crop yields more arrows, offering a renewable way to obtain arrows.

    • 9
    • October 30, 2026