Solved NBT 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 community!

    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.

IDuckz_

Active Member
Jul 25, 2019
106
2
18
Um I need help with NBT, the skript plugins I have are: Skript, SkQuery, Sk-NBeeT, SkRayFall, Skellet, and TuSKe. I keep getting an error which only says "is not a valid item data", heres my code:

Code:
command /nbt:
    permission: nbt.use
    permission message: Unknown command. Type "/help" for help.
    trigger:
        add "{AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:-0.3,Operation:1,UUIDMost:35437,UUIDLeast:165434}]}" to nbt of player's tool
        add "{AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:75,Operation:0,UUIDMost:89248,UUIDLeast:140412}]}" to nbt of player's tool
        add "{AttributeModifiers:[{AttributeName:"generic.attackSpeed",Name:"generic.attackSpeed",Amount:-0.8,Operation:1,UUIDMost:29006,UUIDLeast:141261}]}" to nbt of player's tool
        add "{Unbreakable:1}" to nbt of player's tool
        add "{HideFlags:6}" to nbt of player's tool

Edit: The skript version im currently using is 2.2-dev36
 
Last edited:
Um I need help with NBT, the skript plugins I have are: Skript, SkQuery, Sk-NBeeT, SkRayFall, Skellet, and TuSKe. I keep getting an error which only says "is not a valid item data", heres my code:

Code:
command /nbt:
    permission: nbt.use
    permission message: Unknown command. Type "/help" for help.
    trigger:
        add "{AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:-0.3,Operation:1,UUIDMost:35437,UUIDLeast:165434}]}" to nbt of player's tool
        add "{AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:75,Operation:0,UUIDMost:89248,UUIDLeast:140412}]}" to nbt of player's tool
        add "{AttributeModifiers:[{AttributeName:"generic.attackSpeed",Name:"generic.attackSpeed",Amount:-0.8,Operation:1,UUIDMost:29006,UUIDLeast:141261}]}" to nbt of player's tool
        add "{Unbreakable:1}" to nbt of player's tool
        add "{HideFlags:6}" to nbt of player's tool

Edit: The skript version im currently using is 2.2-dev36
can you show the actual error?

also, quotes within a string need to be doubled up
 
I tried doubling it, but it didnt work, but heres the code:

Code:
command /nbt:
    permission: nbt.use
    permission message: Unknown command. Type "/help" for help.
    trigger:
        add "{AttributeModifiers:[{AttributeName:""generic.movementSpeed"",Name:""generic.movementSpeed"",Amount:-0.8,Operation:1,UUIDMost:73631,UUIDLeast:166418}]}" to nbt of player's tool
        add "{AttributeModifiers:[{AttributeName:""generic.attackDamage"",Name:""generic.attackDamage"",Amount:75,Operation:0,UUIDMost:89248,UUIDLeast:140412}]}" to nbt of player's tool
        add "{AttributeModifiers:[{AttributeName:""generic.attackSpeed"",Name:""generic.attackSpeed"",Amount:-0.8,Operation:1,UUIDMost:29006,UUIDLeast:141261}]}" to nbt of player's tool
        add "{Unbreakable:1}" to nbt of player's tool
        add "{HideFlags:6}" to nbt of player's tool

It didnt give me any errors, it just doesn't work.
 
I tried doubling it, but it didnt work, but heres the code:

Code:
command /nbt:
    permission: nbt.use
    permission message: Unknown command. Type "/help" for help.
    trigger:
        add "{AttributeModifiers:[{AttributeName:""generic.movementSpeed"",Name:""generic.movementSpeed"",Amount:-0.8,Operation:1,UUIDMost:73631,UUIDLeast:166418}]}" to nbt of player's tool
        add "{AttributeModifiers:[{AttributeName:""generic.attackDamage"",Name:""generic.attackDamage"",Amount:75,Operation:0,UUIDMost:89248,UUIDLeast:140412}]}" to nbt of player's tool
        add "{AttributeModifiers:[{AttributeName:""generic.attackSpeed"",Name:""generic.attackSpeed"",Amount:-0.8,Operation:1,UUIDMost:29006,UUIDLeast:141261}]}" to nbt of player's tool
        add "{Unbreakable:1}" to nbt of player's tool
        add "{HideFlags:6}" to nbt of player's tool

It didnt give me any errors, it just doesn't work.
Im not entirely sure then. Usually if the NBT Tag is wrong, it'll send an error.
If it doesn't work, I have no clue whats not allowing it to work
 
Nevermind, I tried using another generator and it worked, sorry for all of this.

Its just the attack speed that doesn't work.
 
Status
Not open for further replies.