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.

event-item lore help

Discussion in 'Skript' started by cuddlytrap, Feb 21, 2021.

Thread Status:
Not open for further replies.
  1. cuddlytrap

    cuddlytrap Member

    Joined:
    Dec 18, 2020
    Messages:
    26
    Likes Received:
    0
    i do this:
    Code (Text):
    1.  
    2. set lore of event-item to "%lore of event-item%||&7Blind I"
    and it comes up with error:
    upload_2021-2-21_12-8-52.png

    can someone help pls? :emoji_grinning: it would be much appreciated
     
  2. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    208
    Likes Received:
    20
    in my opinion, depends on where are u using the "event-item"
     
    • Informative Informative x 1
  3. cuddlytrap

    cuddlytrap Member

    Joined:
    Dec 18, 2020
    Messages:
    26
    Likes Received:
    0
    how do you mean?
    --- Double Post Merged, Feb 22, 2021, Original Post Date: Feb 22, 2021 ---
    if needed, this is the segment of code that requires that line:

    Code (Text):
    1.  
    2. on inventory click:
    3.     if cursor slot of player is enchanted book:
    4.         if name of cursor slot of player is "&bBlind I":
    5.             if event-item is any axe:
    6.                 if lore of event-item doesn't contain "&bBlind I":
    7.                     if lore of event-item doesn't contain "&5Blind II":
    8.                         if lore of event-item doesn't contain "&6Blind III":
    9.                             cancel the event
    10.                             set lore of event-item to "%lore of event-item%||&bBlind I"
    11.                             send "&aYour enchant has been successfully applied!" to the player
    12.                             set cursor slot of player to air
     
Thread Status:
Not open for further replies.

Share This Page

Loading...