Custom durability item in GUI

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

vaxjo

Member
Dec 24, 2017
3
0
1
29
Hello,
I come back to MC and i have problem with this:

code_language.skript:
on npc right click:
    if citizen is 1:
        open "CHEST" with 3 rows named "&8Kovář" to player
        wait a tick
        set slot 2 of player's current inventory to a unbreakable diamond_hoe with custom nbt "{HideFlags: 4}" named "&atest" with lore "asdasdasd"

I mean i have okey this, but, i right click to npc, and its work, but item its not show

But show this error:
code_language.skript:
[16:57:46 ERROR]: a slot can't be set to 'a unbreakable diamond_hoe:2 with custom nbt "{HideFlags: 4}" named "&atest" with lore "asdasdasd"' because the latter is neither an item type nor an item stack (kovar.sk, line 5: set slot 2 of player's current inventory to a unbreakable diamond_hoe:2 with custom nbt "{HideFlags: 4}" named "&atest" with lore "asdasdasd"')

Thank you for help, and have a nice day =)
 
Status
Not open for further replies.