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.

Solved Cant >Add< NBT to existing Item

Discussion in 'Skript' started by L0v0lup, Sep 3, 2018.

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

    L0v0lup Member

    Joined:
    Feb 19, 2017
    Messages:
    16
    Likes Received:
    2
    Minecraft 1.12.2
    Skript 2.2-dev36 |SkStuff T-Nuke Fork

    Hello,
    i am currently working on RPG Sets in Minecraft. For a set effekt i am trying to add HP attributes to an set part after all 4 armour parts have been equipped.

    What would work:
    Code (Skript):
    1. give player diamond boots with custom nbt "{AttributeModifiers:[{AttributeName:""generic.maxHealth"",Name:""Health"",Amount:4,Operation:0,UUIDLeast:1,UUIDMost:1}]}"
    What i wanna do but doesnt work:
    Code (Skript):
    1. add "{AttributeModifiers:[{AttributeName:""generic.maxHealth"",Name:""Health"",Amount:4,Operation:0,UUIDLeast:1,UUIDMost:1}]}" to nbt of player's tool
    Does anybody have any workarounds for that?
     
  2. Best Answer:
    Post #2 by Efnilite, Sep 3, 2018
  3. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    14
    Medals:
    1. Dont use skstuff its broken
    2. Use jNBT
    3. ???
    4. Profit
     
    • Like Like x 1
    • Friendly Friendly x 1
  4. L0v0lup

    L0v0lup Member

    Joined:
    Feb 19, 2017
    Messages:
    16
    Likes Received:
    2
    Thats works, thanks a lot! I was focused too much on finding a workaround, that i havent thoguht about looking out for another plugin :emoji_grinning:
     
    • Like Like x 1
  5. DieHollander_

    DieHollander_ Well-Known Member

    Joined:
    Mar 25, 2018
    Messages:
    171
    Likes Received:
    12
    5. How is it broken? Its working fine for me
     
  6. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    14
    Medals:
    It just is for some people. It's outdated iirc, because it doesnt have the 1.12 nms
     
  7. DieHollander_

    DieHollander_ Well-Known Member

    Joined:
    Mar 25, 2018
    Messages:
    171
    Likes Received:
    12
    Ah ok, I mostly use 1.10, 1.9 so yeah
     
  8. jaylawl

    jaylawl Well-Known Member

    Joined:
    Jan 29, 2017
    Messages:
    173
    Likes Received:
    31
    SkStuff's NBT on 1.12 works for items and mobs, but not tile entities (because TukeNuke didnt bother to fix that in his fork). But any version below 1.12, SkStuff should be good for, as it was maintained until 1.11.

    However, *adding* NBT to an existing item simply isn't an option with SkStuff, because it doesn't support that action - you can only create new items with NBT.
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.
Loading...