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 out 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 1.12 NBT error

Discussion in 'Skript' started by Hyao, Nov 25, 2017.

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

    Hyao Active Member

    Joined:
    Apr 1, 2017
    Messages:
    73
    Likes Received:
    4
    Using Bensku's dev32 version, and the other plugins are all downloaded from resources and constantly kept updated.

    I'm trying to give the player a sword, but I can't seem to add NBT. I've tried the way I've always done it,
    Code (Text):
    1. give 1 stone sword with nbt "{Whatever}" to player
    But the error I get is "the former is not an object"

    Then I tried SkStuff,
    Code (Text):
    1. give 1 stone sword with custom nbt "{Whatever}" to player
    Still the same error.

    What am I doing wrong?
     
  2. Best Answer:
    Post #2 by Donut, Nov 25, 2017
  3. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,336
    Likes Received:
    177
    Medals:
  4. Epicskymi

    Epicskymi Active Member

    Joined:
    Feb 14, 2017
    Messages:
    71
    Likes Received:
    11
    you do not need tag
    you need to have a value for custom nbt
    {Whatever:hello} or {Whatever:1}
    if you want multiple "{Whatever:1, Whatever2: test}"
     
  5. Donut

    Donut Well-Known Member

    Joined:
    Mar 27, 2017
    Messages:
    1,336
    Likes Received:
    177
    Medals:
    oh yeah youre right i read the syntax too quick
     
  6. Mr_Simba

    Mr_Simba King of the Pridelands
    Supporter

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    56
    Medals:
    Also, make sure you're on a version of 1.12 that works with the version of SkStuff you're using. I don't believe the initial release of TuSKe's 1.12 SkStuff fork works on 1.12.2 (though there might be another version available that I'm not aware of which works on 1.12.2).
     
Thread Status:
Not open for further replies.

Share This Page

Loading...