Solved Changing name of player's held item?

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

PotatoGoesMoo

Member
Sep 1, 2017
20
0
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_language.skript:
on rightclick with lead:
    set {_item} to player's held item
    add "{display:{Name=Hey}}" to nbt of {_item}
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.***
 
Status
Not open for further replies.