lifesteal-1.2.1-fabric.jar
Curse Maven Snippet
What's new
Lifesteal Effect v1.2.1 — Fabric (Initial Fabric Release)
The Lifesteal Effect mod is now available for Fabric! This is the first Fabric build, bringing feature parity with the Forge 1.2.1 release.
What's New
Fabric port — Lifesteal Effect now runs on Fabric Loader for Minecraft 1.20.1,
alongside the existing Forge version. Both versions share the same gameplay
behaviour, config defaults, and effect ID (lifesteal:lifesteal), so the mod is
fully interchangeable between loaders.
Features
- Lifesteal status effect — when a player with the effect deals damage to a living entity, they are healed by a configurable amount based on the effect's amplifier.
- Two heal modes —
FLAT(classic behaviour) andLINEAR(scales smoothly with amplifier). - Damage-based bonus — optionally heal an extra percentage of the damage dealt.
- Source filtering — toggle whether melee, projectiles (arrows, tridents), and indirect sources (thorns, TNT) trigger lifesteal.
- Target filtering — blacklist PvP (other players) and/or vanilla bosses (Ender Dragon, Wither, Elder Guardian).
- Heal caps — per-hit hard cap, amplifier cap (0–255), minimum damage threshold, and a no-overheal clamp.
- Pure HUD overlay — a bouncing heart indicator and a "+N" HP popup appear in the top-right corner of the health bar on every lifesteal heal. This is a screen draw only — no potion effect is applied, so no "Regeneration" icon shows up in your inventory.
- Fully configurable — 17 options across general, healing, sources, limits,
and visual sections. Config lives at
config/lifesteal.json5and supports//comments.
Requirements
- Minecraft 1.20.1
- Fabric Loader 0.15.0 or newer
- Fabric API (any 0.92.x build for 1.20.1)
- Java 17 or newer
How to Install
- Install Minecraft 1.20.1 with Fabric Loader (use the Fabric installer).
- Download Fabric API for 1.20.1 and place it in your
mods/folder. - Place
lifesteal-1.2.1-fabric.jarin the samemods/folder. - Launch the game.
How to Use
Give yourself the effect in-game:
/effect give @s lifesteal:lifesteal 600 0
The first number is the duration in ticks (600 = 30 seconds), the second is the
amplifier (0 = level I). Adjust the behaviour to your liking in
config/lifesteal.json5, which is generated on first launch.
Technical Notes
- The damage hook is implemented via a Mixin on
LivingEntity#actuallyHurt(HEAD + TAIL injection), capturing the actual HP lost per hit. - The HUD overlay is driven by a server-to-client packet, so the visual only fires on the attacking player's screen — never on other players'.
- The healing and filtering logic is identical to the Forge 1.2.1 build; only the platform integration (events, networking, config, overlay registration) differs.
Feedback
Found a bug or have a suggestion? Open an issue on the project page. Thanks for playing!
This mod has no additional files