Solved 1.12 NBT error

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

Hyao

Active Member
Apr 1, 2017
73
4
8
33
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:
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:
give 1 stone sword with custom nbt "{Whatever}" to player
Still the same error.

What am I doing wrong?
 
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}"
 
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).
 
Status
Not open for further replies.