AlexanderP5 Posted August 30, 2021 Share Posted August 30, 2021 I am trying to make a lifesteal smp for my friends but I don't know how to make it lifesteal because there are no plugins to put that in minehut, so can someone post the script for lifesteal in the comments. Link to comment Share on other sites More sharing options...
Pryzmm Posted August 30, 2021 Share Posted August 30, 2021 10 hours ago, AlexanderP5 said: I am trying to make a lifesteal smp for my friends but I don't know how to make it lifesteal because there are no plugins to put that in minehut, so can someone post the script for lifesteal in the comments. there is a plugin?https://www.spigotmc.org/resources/lifesteal-smp-plugin.94387/?__cf_chl_jschl_tk__=pmd_DGaXHgralg8ZXe3ChSnYGuWfn49l1vXnywuBVeDu2Ek-1630364140-0-gqNtZGzNAfujcnBszQqR Owner of Lifestealed, Labs, Encore, UNOfficially and Observed OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
AlexanderP5 Posted August 31, 2021 Author Share Posted August 31, 2021 i know but i dont know how to add the plugin Link to comment Share on other sites More sharing options...
Wyndexx Posted August 31, 2021 Share Posted August 31, 2021 you could try something like this: on damage: if attacker is player: set {_life} to player's damage heal player by {_life} hearts Main MC account: Gam3rBoi (VIP in MH) Alt MC account: *Gam3rBoi2147 Farcade server owner Skripter with 6+ months experience + time learning coding concepts Message me through the forums if you need anything! Link to comment Share on other sites More sharing options...
_Unsp0ken_ Posted September 10, 2021 Share Posted September 10, 2021 Try this: variables: {hearts::%player%} = 10 {hearts.left::%player%} = 1 {hearts.add::%player%} = 0 options: ls: &9[&6&lLife&c&lSteal&r&9]&r on death: if victim is a player: if attacker is a player: if {hearts::%victim%} is greater than {hearts.left::%victim%}: add 1 to {hearts::%attacker%} remove 1 from {hearts::%victim%} set max health of attacker to {hearts::%attacker%} set max health of victim to {hearts::%victim%} command /lsreset [<player>]: permission: op trigger: set {hearts::%arg-1%} to 10 set max health of arg-1 to {hearts::%arg-1%} send "{@ls} &2Successfully reset &e%arg-1%&e's &2Health to normal" to player command /lsresetall [<text>]: permission: op trigger: if arg-1 is not set: send "{@ls} &cExecuting this command will reset the skript, thus reseting everyones health. Are you sure you want to do this? Do &e/lsresetall confirm &cto confirm" to player if arg-1 is "confirm": loop all players: set {hearts::%loop-player%} to 10 set {hearts.left::%loop-player%} to 1 set max health of loop-player to {hearts::%loop-player%} send "{@ls} &2Successfully reset the skript" to player #A command to add hearts to people command /hearts [<text>] [<number>] [<player>]: permission: op trigger: if arg-1 is "add": if arg-2 is set: if arg-3 is set: add arg-2 to {hearts::%arg-3%} wait 10 ticks set max health of arg-3 to {hearts::%arg-3%} make console execute command "/effect give 5 regeneration %arg-3% 10 true" send "{@ls} &2Successfully added &e%arg-2% &2hearts to &e%arg-3%" to player if arg-1 is "remove": if arg-2 is set: if arg-3 is set: remove arg-2 from {hearts::%arg-3%} wait 10 ticks set max health of arg-3 to {hearts::%arg-3%} send "{@ls} &2Successfully removed &e%arg-2% &2hearts from &e%arg-3%" to player Link to comment Share on other sites More sharing options...
ChickenManSkripter Posted October 24, 2021 Share Posted October 24, 2021 This skript doesn't work at all it didn't work when i killed someone please try to fix this error. Link to comment Share on other sites More sharing options...
Pryzmm Posted October 25, 2021 Share Posted October 25, 2021 20 hours ago, ChickenManSkripter said: This skript doesn't work at all it didn't work when i killed someone please try to fix this error. 1. dont necropost 2. run it through a parser 3. check if you have the right addons 4. dont necropost 1 Owner of Lifestealed, Labs, Encore, UNOfficially and Observed OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now