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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

can someone fix my simple skript

Discussion in 'Skript' started by WestinGames, Aug 4, 2022.

  1. WestinGames

    WestinGames New Member

    Joined:
    Feb 12, 2022
    Messages:
    7
    Likes Received:
    0
    Error: Can't understand this event


    Code:

    on armor equip:
    if lore of event-item contains "&6&lCrown":
    trigger:
    set player's max health to 40
    set player's health to 40
     
  2. ANormalCoconut

    ANormalCoconut New Member

    Joined:
    Aug 1, 2022
    Messages:
    8
    Likes Received:
    0
    dont use trigger. trigger is only used in commands
     
  3. Samuelpc180

    Samuelpc180 New Member

    Joined:
    Mar 11, 2022
    Messages:
    9
    Likes Received:
    1
    this should work:

    Code (Text):
    1. on armor equip:
    2.     if lore of event-item contains "&6&lCrown":
    3.         set player's max health to 40
    4.         set player's health to 40
    but just so you know, it's making the player's health to 40 every time the player equips the crown so if the player spam equips the crown, they will basically never die.
     
  4. JakeTheChad

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    98
    Likes Received:
    6
    only set the max health, the actual health will regen over time
     

Share This Page

Loading...