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.

Item with lives help

Discussion in 'Skript' started by nottgm, Apr 29, 2022.

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

    nottgm New Member

    Joined:
    Apr 21, 2022
    Messages:
    5
    Likes Received:
    0
    I wanna make an item with lives that if item lives is not less than 1 it wont drop the item on player's death but if item lives is 0 it will break/drop the item.

    Can someone help me with this? Thank you in advance!


    https://pastebin.com/SFhFfHrQ
     
  2. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    you're using two differnt variables
     
  3. nottgm

    nottgm New Member

    Joined:
    Apr 21, 2022
    Messages:
    5
    Likes Received:
    0
    Here, I made it work but one more thing I wanna put a color codes in "%{_life}%" instead of having a default purple/violet lore.

    https://pastebin.com/anhU5igm
     
  4. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    then add a color code
     
  5. nottgm

    nottgm New Member

    Joined:
    Apr 21, 2022
    Messages:
    5
    Likes Received:
    0
    it stops working when I do "&a%{_life}%"
    it won't change the lore count
     
  6. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    Send a screenshot
     
Thread Status:
Not open for further replies.

Share This Page

Loading...