Перейти к содержимому
Mineforgian

expRepair

Take control of your Mending enchantment. expRepair lets you decide when and how your gear gets repaired using your stored XP — no more losing XP to random orb pickups at the wrong time.

Загрузки
2K
Подписчики
3
Обновлён
24 июля 2026 г.
Лицензия
MIT

Опубликован 18 марта 2026 г.

expRepair

expRepair is a lightweight Minecraft mod that lets players spend their XP to automatically repair Mending-enchanted gear — without relying on XP orbs dropping near you. Choose between passive background repair or manual on-demand repair, with full server-side control over defaults and permissions.


✨ Features

🔁 Passive Repair

Automatically repairs your equipped Mending gear every second using your stored XP. Set an XP floor so passive repair never spends below a minimum level, keeping you safe from dropping too low.

🔧 Manual Repair

Sneak + right-click in the air while holding a damaged Mending item to instantly repair it using your XP. Great for quick fixes without waiting for passive repair to kick in.

🔒 Mutually Exclusive Modes

Passive and manual repair cannot both be active at the same time — enabling one automatically disables the other. Both can be disabled simultaneously if you prefer to manage repairs yourself.

💾 Persistent Settings

All player settings are saved permanently to the server. Settings survive disconnects, restarts, deaths, and dimension changes.

🛠️Admin Controls

Server administrators have full control over mod behavior:

  • Set server-wide defaults for new players
  • Enable or disable passive and/or manual repair server-wide
  • Override individual player settings
  • Broadcast or silently reload configuration changes

📋 Commands

All commands support both /exprepair and the /er shorthand.

Player Commands

Command Description
/er Help / overview
/er passive Toggle passive repair on/off
/er manual Toggle manual repair on/off
/er threshold [levels] View or set your XP floor (0 to clear)
/er status View your current settings
/er serverdefaults View server defaults (read-only)
/er version Show mod version

Admin Commands (OP level 2+)

Command Description
/er admin View server settings
/er admin passive on|off Set default passive repair for new players
/er admin passive allow on|off [silent] Enable/disable passive repair server-wide
/er admin manual on|off Set default manual repair for new players
/er admin manual allow on|off [silent] Enable/disable manual repair server-wide
/er admin threshold [levels] View or set the default XP floor
/er admin maxXpPerRepair [xp] View or set max XP spent per repair tick
/er admin reload [silent] Reload config from disk
/er admin <player> View a player's current settings
/er admin <player> reset Reset a player to server defaults
/er admin <player> passive on|off Override a player's passive repair
/er admin <player> manual on|off Override a player's manual repair
/er admin <player> threshold <levels> Override a player's XP floor

⚙️ Configuration

Settings are stored in config/exprepair.json and can be edited by hand or managed entirely through in-game commands. Changes made via commands are written to disk immediately — no restart required. Use /er admin reload to apply hand-edited changes.

{
  "maxXpPerRepair": 8,
  "defaultPassive": false,
  "defaultManual": false,
  "defaultThreshold": 0,
  "allowPassive": true,
  "allowManual": true
}

┌──────────────────┬─────────┬───────────────────────────────────────────────────────────┐
│     Property     │ Default │                        Description                        │
├──────────────────┼─────────┼───────────────────────────────────────────────────────────┤
│ maxXpPerRepair   │ 8       │ Maximum XP spent per repair tick                          │
├──────────────────┼─────────┼───────────────────────────────────────────────────────────┤
│ defaultPassive   │ false   │ Default passive repair state for new players              │
├──────────────────┼─────────┼───────────────────────────────────────────────────────────┤
│ defaultManual    │ false   │ Default manual repair state for new players               │
├──────────────────┼─────────┼───────────────────────────────────────────────────────────┤
│ defaultThreshold │ 0       │ Default minimum XP level passive repair won't spend below │
├──────────────────┼─────────┼───────────────────────────────────────────────────────────┤
│ allowPassive     │ true    │ Whether players are allowed to use passive repair         │
├──────────────────┼─────────┼───────────────────────────────────────────────────────────┤
│ allowManual      │ true    │ Whether players are allowed to use manual repair          │
└──────────────────┴─────────┴───────────────────────────────────────────────────────────┘

---
📦 Requirements

- Minecraft: 1.21.11
- Loader: Fabric
- Fabric API: Required
- Fabric Loader: 0.18.4 or higher

---
🔗 Source Code

Available on https://github.com/LunixiaLIVE/expRepair under the MIT License.

Ченджлог

1.9.4Релиз1.21.8, 1.21.9, 1.21.10 · 24 июля 2026 г.

v1.21.5-1.21.10 backport for both fabric and neoforge loaders

1.9.4Релиз1.21.11 · 24 июля 2026 г.

1.21.11 back port for both fabric and neoforge loaders

1.9.4Релиз26.1, 26.1.1, 26.1.2 · 23 июля 2026 г.

housekeeping release - no gameplay changes. unified codebase and naming for 26.x versions.

1.9.4Релиз26.2 · 23 июля 2026 г.

housekeeping release - no gameplay changes. unified codebase and naming for 26.x versions.

1.9.3Релиз1.21.11 · 5 апреля 2026 г.
  • Added /exprepair loginmessage — per-player toggle for the login status message (default: on)
1.9.3Релиз26.1, 26.1.1 · 5 апреля 2026 г.
  • Fixed mod version number (was incorrectly set to 1.2.2)
  • Broadened Minecraft version compatibility to cover both 26.1 and 26.1.1
1.9Релиз1.21.11 · 25 марта 2026 г.

Changelog

v1.9

  • Migrated player data storage from NBT AttachmentTypes to a file-based system (config/exprepair/playerdata.json)
  • Legacy NBT data auto-migrates and is cleaned up on player join
  • Restructured into Architectury multi-loader layout (common + fabric modules)

v1.0

  • Fixed player settings (passive mode, manual mode, threshold) being lost on dimension change or death/respawn
  • Enforced mutual exclusion between passive and manual repair modes — enabling one disables the other
  • Restructured admin commands: all now under /er admin, removed redundant subcommand layers
  • /er admin reload now broadcasts by default; silent is explicit
  • Removed unused session maps and dead code

Initial Release

  • Passive auto-repair: automatically repairs Mending items using XP
  • Manual repair: sneak + right-click to repair on demand
  • Per-player toggles for passive/manual modes
  • Configurable XP threshold (minimum XP floor before repair triggers)
  • Configurable max XP consumed per repair tick
  • Full admin commands for managing per-player settings and server defaults
  • /er alias for all /exprepair commands
1.6Релиз1.21.11 · 21 марта 2026 г.

Changelog

🐛 Bug Fixes

  • Fixed: Settings lost on dimension change — Player repair settings (passive, manual, threshold) were silently reset when traveling through a portal to the Nether or End. Settings now persist correctly across all dimension changes.
  • Fixed: Settings lost on death/respawn — Same fix also covers player data being dropped on respawn after death.

⚙️ Command Changes

  • All admin commands are now grouped under /er admin for clarity
  • Removed the default subcommand layer — server settings are now directly under /er admin
  • /er admin threshold and /er admin maxXpPerRepair now show the current value when run without arguments
  • Removed redundant /er admin <player> status — just use /er admin <player>
  • /er admin reload now broadcasts by default; use /er admin reload silent to suppress

🔄 Behavior Changes

  • Removed session vs. permanent distinction — player settings are now always saved permanently
  • Passive and manual repair are now strictly mutually exclusive — enabling one automatically disables the other. Both can still be disabled simultaneously.
  • If the config file is hand-edited with both defaultPassive and defaultManual set to true, manual repair takes priority

📋 Full Command Reference

Player Commands

Command Description
/er Help / overview
/er passive Toggle passive repair on/off
/er manual Toggle manual repair on/off
/er threshold [levels] View or set your XP floor (0 to clear)
/er status View your current settings
/er serverdefaults View server defaults (read-only)
/er version Show mod version

Admin Commands (OP level 2+)

Command Description
/er admin View server settings
/er admin passive on|off Set default passive repair
/er admin passive allow on|off [silent] Enable/disable passive for all players
/er admin manual on|off Set default manual repair
/er admin manual allow on|off [silent] Enable/disable manual for all players
/er admin threshold [levels] View or set default XP floor
/er admin maxXpPerRepair [xp] View or set max XP spent per repair tick
/er admin reload [silent] Reload config from disk
/er admin <player> View a player's settings
/er admin <player> reset Reset player to server defaults
/er admin <player> passive on|off Set a player's passive repair
/er admin <player> manual on|off Set a player's manual repair
/er admin <player> threshold <levels> Set a player's XP floor

All commands also work with /exprepair in place of /er.

Комментарии

Загружаем…