1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

LifeSteal Script (Transfer Hearts)

Discussion in 'Scripts' started by CrossPath, Oct 22, 2021.

  1. CrossPath

    CrossPath New Member

    Joined:
    Oct 22, 2021
    Messages:
    0
    Likes Received:
    0
    Skript Information
    - This is not 100% tested to be perfect.
    - This is a simple Skript that lets players trade health.

    Install Instructions
    - Download Skript (https://github.com/SkriptLang/Skript/releases)
    - Download health.sk (this page)
    - Restart your server and locate the "Skripts" folder, then open it
    - Open the "scripts" file within the "Skripts" folder and place the "health.sk" file within it
    - Go in-game and type "/skript reload health" (or do it in console and type "skript reload health")

    How to Let Players Use Command
    - You can either remove the "permissions" line within the code OR get some sort of permission management plugin (LuckPerms recommended personally) and add the permission(s) wanted as listed below.

    PERMISSION NODES
    (PLAYER CMD) /giveheart - custom.giveheart
    (ADMIN CMD) /sethealth - custom.sethealth
    (ADMIN CMD) /removehealth - custom.removehealth
    (ADMIN CMD) /addhealth - custom.addhealth

    Commands
    /givehealth (player) (hearts)
    /sethealth (player) (hearts)
    /removehealth (player) (hearts)
    /addhealth (player) (hearts)
    /viewhealth (player)

    /hearts help

    Ex
    /givehealth Cross 3
    /sethealth Cross 7
    /removehealth Cross 8
    /addhealth Cross 3
    /viewhealth Cross

    Command Aliases
    /giveheart aliases: /gheart, /gh, /transferheart, /ghealth, /givehealth
    /sethealth aliases: /shealth, /sh, /sheart, /setheart
    /removeheart aliases: /subtracthealth, /rhealth, /rh, /removehealth
    /addheart aliases: /ahealth, /additionalhealth, /ah, /aheart, /addhealth
    /viewheart aliases: /viewhealth, /vheart, /vhealth, /vh
    /health help aliases: /heart help, /cross help


    IF YOU NEED SUPPORT, PLEASE FEEL FREE TO REACH OUT BY SENDING ME A MESSAGE ON SKUNITY FORUMS.

    HELP COMMAND IS DONE BY TYPING /heart help IN GAME.

    This is set up for a Lifesteal server.
     

Share This Page

Loading...