CropXp

CropXp

Mod

Random experience drops when you harvest crops — fully compatible with LevelZ.

Server Adventure

1,534 downloads
6 followers
Follow Save

A simple mod that drops a small amount of experience when harvesting crops. You can configure the drop chance and amounts. When LevelZ is installed, it also drops a small amount of LevelZ experience (fully compatible).

Compatibility

Fabric 1.19.2 / 1.20.1 / 1.21.1

Settings (defaults)

  • xpChance: 0.5
    • Probability (0.0–1.0) to drop vanilla XP per successful harvest. Set 0.0 to disable; 1.0 to always drop.
  • xpMin/xpMax: 1–2
    • Integer range for vanilla XP amount. The value is rolled uniformly in [min, max]. If max < min, it is auto-corrected to min.
  • zChance: 0.25
    • Probability (0.0–1.0) to drop LevelZ XP (only if LevelZ is present). Independent of xpChance, so both can trigger on the same harvest.
  • zMin/zMax: 1–1
    • Integer range for LevelZ XP amount. Same rules as vanilla XP.

Behavior notes

  • Targets are fixed: mature wheat/carrot/potato/beetroot, melon/pumpkin stems (age 7), and attached stems (always).
  • Creative-mode breaking does not drop XP.
  • ModMenu + Cloth Config lets you edit values in-game (optional). Without them, edit config/cropxp.json directly.
  • Large values are allowed but will spawn correspondingly large XP orbs.

NOTE: This mod was originally created for my own mod pack project.


Project members

uema5a

Owner

Details

Licensed MIT
Published 6 months ago
Updated 12 days ago