Solved how do i add an nbt to an 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.

Dry Bonnoe

Member
Jun 18, 2022
13
1
3
43
set slot 0 of metadata tag "shop" of player to black stained glass pane of mending 1 named " "
add nbt "{HideFlags:1}" to slot 0 of metadata tag "shop" of player

is what i tried but it says
'nbt "{HideFlags:1}" can't be added to a slot because the former is neither an item type nor an item stack
 
Last edited:
Code:
set slot 0 of metadata tag "shop" of player to black stained glass pane of mending 1 named " " with nbt "{HideFlags:1}"

you can do it in one line like this
 
  • Like
Reactions: Dry Bonnoe
Status
Not open for further replies.