Jump to content

Free lifesteal skript.


awesomeme337666

Recommended Posts

 
1
on load:
2
    if {maxhealth.Lifesteal} is not set:
3
        set {maxhealth.SoulStealX} to 50
4
        set {name.server} to [SoulStealX]:
5
on death:
6
    victim is player:
7
        if attacker's max health is less than {maxhealth.Lifesteal}:
8
            add 1 to max health of attacker
9
        subtract 1 from max health of victim
10
        if victim's max health is less than 1:
11
            ban victim
12
            
13
command /checkhearts [<player>]:
14
    aliases: ch
15
    trigger:
16
        send "%{name.server}% %arg-1% has %arg-1's max health% hearts."
17
        
18
command /redeemheart [<number>]:
19
    trigger:
20
        set {heartredeem.%player%} to arg-1
21
        if arg-1 is a number:
22
            if player's max health is more than arg-1:
23
                if player can hold arg-1 of red dye of Protection 5 named "Heart":
24
                    subtract arg-1 from max health of player
25
                    give player arg-1 of red dye of Protection 5 named "Heart"
26
                else:
27
                    send "<red>%{name.server}% Your inventory is too full." to player
28
                    
29
on rightclick with red dye:
30
    if event-item is enchanted with protection 5:
31
        if player's max health is less than {maxhealth.Lifesteal}:
32
            Remove 1 red dye from the player
33
            add 1 to max health of player

Tell me in the comment section what else I should add to this.

  • Sad 1
Link to comment
Share on other sites

  • 4 weeks later...
5 hours ago, Fohng said:

can you make the skript so that when you are at 1 heart you cant lose it, an the attacker doesnt get a heart? Thank you.

 

-Fohng Minehut VIP

 

Just check if the player has 1 heart, and if they do, stop the skript.

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

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 - Present

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...