• check_circle Functions
  • check_circle Predicates
  • 9,398 views, 6 today
  • 1,277 downloads, 1 today
  • 18
  • 9
  • 18
Stantoncomet's Avatar Stantoncomet
Level 43 : Master Engineer
8
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. Permanently. 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

Withdrawing
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.withdrawing a heart


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.

Configurable Options
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!






CompatibilityMinecraft 1.18
Tags

6 Update Logs

Notice!! : by Stantoncomet 05/21/2022 12:57:26 amMay 21st, 2022

So sorry for another inconvenience, but as I was testing, I noticed v2.1.0 and v2.1.1 have a major issue where the LifeSteal part of this LifeSteal datapack wasn't working (players were losing hearts when killing other players instead of gaining) due to some code that was changed. I know this really isn't ideal, but as mentioned in the description this project is a work in progress. :P
LOAD MORE LOGS

Create an account or sign in to comment.

1
05/07/2023 12:44 am
Level 15 : Journeyman Miner
GoodPlayzYT
GoodPlayzYT's Avatar
add craftibale heartrtrtrtr
1
08/03/2022 2:06 am
Level 1 : New Miner
dadgn
dadgn's Avatar
I sujest to add crafteable hearts
2
07/25/2022 3:23 pm
Level 43 : Master Button Pusher
Boid
Boid's Avatar
There is no visual bug when you withdraw a heart, max health attribute changes only register after your health has been updated so using any health modifying potion effects is a simple fix
1
08/15/2022 12:15 am
Level 43 : Master Engineer
Stantoncomet
Stantoncomet's Avatar
Oh! Thanks for this. I'll implement this into the next update... Not sure when that'll be out though
1
06/15/2022 10:03 pm
Level 1 : New Miner
ZIstream
ZIstream's Avatar
Cartable hearts plz
1
05/26/2022 12:12 pm
Level 1 : New Miner
Apo_Team
Apo_Team's Avatar
okay i got another idea, add a function to change from spectator mode or being banned



(when some dies they will either be in spectator mode or be banned from server, there should be function to pick from)
1
05/27/2022 3:36 am
Level 43 : Master Engineer
Stantoncomet
Stantoncomet's Avatar
I’ll consider this, but because of the way permission levels work, you would have to give datapack functions the highest tier (4 I think) in the server.properties file for banning to work. Here’s the wiki for a bit more detail: minecraft.fandom.com/wiki/Permission_level
2
05/22/2022 12:03 am
Level 12 : Journeyman Cookie
Unavalible_User
Unavalible_User's Avatar
can't wait for craftable hearts
2
05/21/2022 6:42 am
Level 1 : New Miner
Apo_Team
Apo_Team's Avatar
Okay so i got a suggestion in case this doesnt exist, make a way to be able to revive people and make a function so that this can be disabled on and off just incase for people who doesnt want to be able to revive



(you can also make a heart recipe and use the hearts in the recipe for the item to revive)
1
05/22/2022 2:53 pm
Level 43 : Master Engineer
Stantoncomet
Stantoncomet's Avatar
Thanks for the suggestion! I didn’t even think about being able to revive players, I’ll definitely keep that in mind.





(craftable hearts in the next update!)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome