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 our 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.

Solved Changing name of player's held item?

Discussion in 'Skript' started by PotatoGoesMoo, Dec 25, 2017.

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

    PotatoGoesMoo Member

    Joined:
    Sep 1, 2017
    Messages:
    20
    Likes Received:
    0
    Hey all,

    I need help with changing the name of the player's held item. I've tried this with quotation marks in all different places:
    Code (Skript):
    1. on rightclick with lead:
    2.     set {_item} to player's held item
    3.     add "{display:{Name=Hey}}" to nbt of {_item}
    4.  
    But that doesn't seem to work. I don't get any error messages when I try to load the skript or anything, it's just not doing what I want it to do. Any suggestions? Thanks!

    ***Note- I've also tried just removing the item from the player's inventory and then giving them a renamed one, but that is just really glitchy and not very reliable.***
     
  2. Best Answer:
    Post #2 by Ouma Shu, Dec 25, 2017
  3. Ouma Shu

    Ouma Shu Well-Known Member

    Joined:
    Dec 25, 2017
    Messages:
    45
    Likes Received:
    2
    Done.
    Code (Skript):
    1. on rightclick with lead:
    2.     set the name of player's held item to "Hey, i'm your item!"
     
    • Like Like x 1
  4. PotatoGoesMoo

    PotatoGoesMoo Member

    Joined:
    Sep 1, 2017
    Messages:
    20
    Likes Received:
    0
    Thanks!!! :emoji_slight_smile:
     
    • Friendly Friendly x 1
Thread Status:
Not open for further replies.
Loading...