How to make a heart in minecraft LifeSteal

Stantoncomet's Simple LifeSteal!



This project is still in beta and you'll probably encounter bugs. Beware!

If you haven't heard of LifeSteal, It's where everyone on the server starts with 10 hearts (like usual) but if you die, you lose a heart. Perminately. This also means that if you kill a player, you gain the heart that they lost. (Hearts are two health points each). If you reach 0 hearts, you get banned (forever stuck in spectator mode). The maximum amount of hearts you can have is 20 50. A short showcase of this: https://youtu.be/j53tmp0Pr1g

Feature list:
*Steal players' hearts
*Withdraw hearts
*Option to choose whether you can lose hearts from non-players
*Reset everyone's hearts online if needed

Another thing to note is the withdrawal feature. By using /trigger withdraw you receive a heart item at the cost of (of course) a heart.

How to make a heart in minecraft LifeSteal

You can give this heart to other members of the server and redeem it by pressing F while in your main hand!


Note that it takes a bit to update your health after you lose a heart. I don't think there's anything I can do to fix this as it's just a visual bug.

If you are the server owner or somebody with operator permissions, there are a few things you can change. You can use /function lifesteal/gamerule/playerkillonly:[​true/false] (I know, kind of a mouth full) to change between being able to lose hearts to anything [​false], or just by players [​true], and reset all online players' number of hearts with /function lifesteal:reset.

Please let me know if there are any bugs/suggestions/other Minecraft versions that work in the comments!

That's about it! You can use this for content if you like, just credit me somewhere with a link to this page! Hope you enjoy!

  • check_circle Advancements
  • check_circle Functions
  • check_circle Loot Tables
  • check_circle Predicates
  • check_circle Recipes

Published Apr 7th,

  • 6,471 views, 41 today
  • 1,469 downloads, 8 today

  • 11

This is a lifesteal data pack, which means that this pack allows players to steal other players' permeant hearts! You can get up to 40 hearts by default, but if you think you need more, simply open the pack, navigate to the configfiles in the lifesteal functions folder, and change the MaxHeartsValue to be any number you like. (Cap is 100, and doing negative numbers won't do anything). You can also change the crafting recipe for the Fruit of Revival to be whatever you like. Go into the fruit_of_revival.json file in the lifesteal recipes folder and replace the text in it with your own preferred recipe. The default recipe requires 1 gold block, 1 golden apple, 1 netherite ingot, and 1 totem. If, for whatever reason, a player loses all their hearts, they'll be forced into spectator. Each player has a unique PlayerID that can be seen by using the tab key. That about all I can think of to say, so have fun with the pack and I'll see you next time!

Edit:

Some commands of interest:
/trigger RevivePlayer set <PlayerNumber>
/trigger ExtractHeart

You are welcome to use this pack anything you like. If you are to reuse the code however, please credit me in some way and link my initial data pack in your description.

How to make a heart in minecraft LifeSteal

How to make a heart in minecraft LifeSteal

How to make a heart in minecraft LifeSteal
How to make a heart in minecraft LifeSteal
How to make a heart in minecraft LifeSteal

Quick overview: Lifesteal at its core allows for players to gain an extra heart when killing players and lose a heart when dying. LifestealCore which is a heavily tested and extremely configurable plugin, takes this basic concept and elevates it to make your server stand out with the many additional custom features it offers. If you have any questions at all, please do not hesitate to contact me!

Please note that every single feature is tweakable and togglable, if you don't like a feature you can simply disable it!Features:
View the default config file here!
View the default messages file here!
View the default items file here!


• Fully configure and tweak every feature

· Admin commands to set, add, remove, eliminate and revive players.
· Select the total amount of hearts, hearts for starters, hearts after unban.
· Extremely configurable items (beacons, hearts, effect hearts), choose names, lores, materials, custom skulls, custom models, flags, glow, recipes, and create as many item tiers as you want.
· Define worlds where players don't lose hearts when dying.
· Define worlds where players get instantly eliminated when dying.

[Item] Revive Beacons
· Create revive beacon tiers with different revive times, durability (hits they can take before breaking), cooldowns, particle effects & holograms. (Check beacons section in items.yml)
· Define a custom command so that players can bind beacons to a player they want to revive.
· Display a hologram with live stats above the beacon (show time left until revive, durability left, player being revived).
· Send a broadcast with the beacon location whenever a revive beacon is placed (there is an option for beacons to be silent).

[Item] Restorative Hearts
· Create heart tiers that add x amount of hearts whenever consumed. Set cooldowns for them and chances to randomly drop when killing a player. (Check the hearts section in items.yml)

· Choose whether or not to directly apply or drop them as an item on player x player kill.
· Mob deaths can be more punishing (e.g Blazes decrease hearts by 2, Ghasts by 3, etc.) or disable heart loss for mobs.
· Environmental deaths can be more punishing (e.g Drowning decreases hearts by 2, Fall Damage by 3, etc.) or disable heart loss for other causes.
· Define permission-based heart loss.
· NEW! Set player-specific heart caps (e.g donators have a total of 5 hearts more, etc.)[Item] Sacrificial Hearts
· Create sacrificial heart tiers that take x amount of hearts and provide a temporary buff (potion effects). (Check effecthearts section in items.yml).
• Menu for Players
· Players can access their own lifesteal menu (not admin menu) and execute various commands such as "check" which shows the status of another player, or "revive" that'll revive a player with the cost of hearts.

• [Important] Anti Exploit Features
· Prevent heart steal/drops if both players are on the same IP.
· Prevent heart steal/drops if a player is killed by the same player within x seconds.

• Withdraw hearts onto notes

· Let your players withdraw hearts onto physical items with DeluxeWithdraw. (Get DeluxeWithdraw for 50% cheaper if you purchase LifestealCore).• Permission-based Ban Times
· Define ban times based on permissions, which allows you to set smaller ban times for donators, etc.

• Quality of Life Features
· Automatically discover custom recipes for items (1.9+).
· Fully customizable messages including chat (option to auto-center), actionbars, and titles. (RGB Support)
· Fully customizable sounds (option for power and pitch), for every command and event.
· Placeholders to use wherever you want. (PlaceholderAPI)
· Use any PlaceholderAPI placeholder in plugin messages.

• General Quality
· Clickable chat menu with command suggestions and command executions.
· Auto-updating configurations on plugin updates.
· Works on versions throughout 1.8 - Latest.
· Frequent updates & fixes & support.

• Developer API JitPack - JavaDocs

How to make a heart in minecraft LifeSteal
How to make a heart in minecraft LifeSteal
How to make a heart in minecraft LifeSteal

How to make a heart in minecraft LifeSteal

Servers using LifestealCore:

How to make a heart in minecraft LifeSteal

What Lifesteal plugin does the Lifesteal SMP use?

zrdzn / GreatLifeSteal. A recently popular Minecraft plugin for life stealing system in SMP servers.