Stantoncomet's Simple LifeSteal!
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: 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. You can give this heart to other members of the server and redeem it by pressing F while in your main hand!
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!
Published Apr 7th,
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: 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. 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: • [Item] Restorative Hearts · 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 • Developer API JitPack - JavaDocs Servers using LifestealCore: What Lifesteal plugin does the Lifesteal SMP use?zrdzn / GreatLifeSteal. A recently popular Minecraft plugin for life stealing system in SMP servers.
|