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.

Switching Held Item

Discussion in 'Skript' started by Evan Xuro, Sep 14, 2021.

  1. Evan Xuro

    Evan Xuro Member

    Joined:
    Sep 14, 2021
    Messages:
    2
    Likes Received:
    0
    Alright, so basically I'm trying to make a lightsaber tool that will only stay active if you have enough diamonds in your inventory. Otherwise, the sword will deactivate and turn into a soul torch. I'm wondering if it is possible to keep the lore of the item but switch the item to a soul torch. (The item has more than 1 line of lore)
     
  2. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    39
    Likes Received:
    2
    It is indeed possible, you can just set a variable to the lore then viceverse on the other tool or even easier,

    set player's tool to (new item) with lore (lore of player's tool)
     
  3. Evan Xuro

    Evan Xuro Member

    Joined:
    Sep 14, 2021
    Messages:
    2
    Likes Received:
    0
    It saves the lore as "[ Star Wars ], Lightsaber and ", so when I add it to an item it's only one line. How do I make it keep all the lines?
     
  4. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    39
    Likes Received:
    2
    What skript version are you using? That shouldn't happen
     

Share This Page

Loading...