Compatibility
Minecraft: Java Edition
Platforms
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Lifesteal
Every time you kill a player, a heart is removed from their base health and added to yours. If all a player's hearts are lost, they get eliminated.
This pack adds the classic lifesteal mechanics as well as more advancements and a natural way to trade hearts with others.
(Note: Enviromental deaths do not count. Just because you forgot your elytra or your shield, doesn't mean you lose a valuable heart!)
Features
-
Heart System: Hearts are transferred between players from the victim to the killer immediately upon death. Maximum hearts you can reach is 20 hearts.
-
More Advancements: 9 new advancements are added, each related to the new added mechanics. They can be found in the adventure tab.
-
Elimination: Once a player reaches 0 hearts, they will automatically be put in spectator mode, and their death will be announced to the server.
-
Heart Trading: Players can peacefully trade and deal hearts through the new 'heart bottle'.
-
And more! New sounds, optimisations, admin commands etc.
Heart Trading
Heart bottled can be crafted in the crafting table by using any potion, 2 redstone dust and 1 glowstone dust, as shown below.
Older version (<1.2) method:
Heart bottles can be crafted by throwing 1 thick potion, 1 redstone dust and 1 glowstone dust on the ground. ![Heart bottle being crafted](https://i.imgur.com/WXcqbXC.gif)If drunk, the player who consumed the potion will lose a heart, and the bottle will become a 'Bottled heart'. This bottled heart can be stored, traded and even destroyed just like a normal item. When drunk, the heart is transferred into the player who drank the bottles heart! The player will also get the weakness potion effect, to avoid abusing this item in battle. After use, these bottles shatter. If a bottled heart is drunk at the max hearts (20) the bottle will shatter, destroying the heart inside. If an empty heart bottle is drunk at one heart, the bottle will shatter.
Other
Admin Commands
Give Commands
/function lifesteal:admin/give/emptyheartbottle
- Gives you an empty heart bottle.
/function lifesteal:admin/give/bottledheart
- Gives you a bottled heart.
/function lifesteal:admin/give/emptyheartbottle
- Gives you an empty heart bottle.
...
Utility Commands
/function lifesteal:admin/uninstall
- Run this command before removing the datapack from the world folder to remove the scoreboards.
/function lifesteal:admin/reinstall
- Reinstalls the pack if you run the above command accidentally. It also resets all players. (Reloading the server will not reset the pack.)
/function lifesteal:admin/reset
- Resets all players back to 10 hearts, removes all related advancements and respawns eliminated players.
To change a players health manually, run /scoreboard players set (username) health (number of hearts)
, the run execute as (username) run function lifesteal:updatehealth