Download 物品實體自動修補│Item Entity Automatic Mending — Minecraft Mods — MetaMods

物品實體自動修補│Item Entity Automatic Mending

Active

Downloads

0

Last update

4 months ago

Versions

1.21.2 — 1.21.5
Server
Fabric
Forge
Neoforge
Quilt
Economy
Game mechanics
Game optimization

Item Entity Automatic Mending Functionality

This mod introduces a convenient mechanics for in-game durability recovery! With it, items dropped on the ground that possess the Mending enchantment can automatically restore their durability by absorbing experience orbs.

Here’s how it works: When an item with the Mending enhancement is on the ground and its durability is less than full, it starts pulling in all experience orbs within a three-block radius. The restoration process takes roughly 0.1 seconds—the same amount of time a player takes to collect experience orbs.

An important point: If an orb contains more experience than the item’s durability can hold, the full amount is still consumed. So be careful about valuable big orbs in close proximity!


Code sample for workflow:

// Example of scan for exp orbs in config zone
checkOrbsInRadius(itemStack, 3.0f);
// Returns mendingOrbsFound*expPerOrb, transforms into durability units => i.e. each experience point adds +2 to sword durability with Cooldown 100ms (typically 0.1s?). For example: Durability += ExpValue.

Key resource videos to understand usage:

I recommend watching a related video on YouTube with reviews, where a thriving system demonstration in Russian dives into the settings, or perhaps a fully working Mytire showcase from Minecraft gameplay compilations– «Revival mechanics Auto-Repair //Mending» if accessible. There the effect is fast repairing rare tools directly in worlds!! Just find that reviewed contents anywhere – essential after setup checklist, indeed: cubic radius activated, priority for decaying iron equip validation tested via creative inventory pre-test cycles finally.<

Project members
special_TT

special_TT

Developer

Created: 24 Feb 2025

ID: 82880