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.

Custom durability item in GUI

Discussion in 'Skript' started by vaxjo, Jan 7, 2019.

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

    vaxjo Member

    Joined:
    Dec 24, 2017
    Messages:
    3
    Likes Received:
    0
    Hello,
    I come back to MC and i have problem with this:

    Code (Skript):
    1.  
    2. on npc right click:
    3.     if citizen is 1:
    4.         open "CHEST" with 3 rows named "&8Kovář" to player
    5.         wait a tick
    6.         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 (Skript):
    1. [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 =)
     
Thread Status:
Not open for further replies.
Loading...