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 How to add attack damage on sword

Discussion in 'Skript' started by thecodingninja, Oct 12, 2021.

  1. thecodingninja

    thecodingninja New Member

    Joined:
    Oct 10, 2021
    Messages:
    8
    Likes Received:
    0
    I have been trying to make a sword with custom attack damage, but it I can't figure out how to make it work.
    I have tried giving it a nbt, but it doesn't work. This is my code
    Code (Text):
    1. command /kingsword:
    2.   trigger:
    3.     give player a Unbreakable iron sword named "<blue>King's sword"
    4.     add to last given nbt "{Unbreakable:1,AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:11,Slot:mainhand,Name:"generic.attack_damage",UUID:[I;-121912,29295,214724,-58590]}],HideFlags:6}"
    :
     
  2. Best Answer:
    Post #2 by oToghty, Oct 12, 2021
  3. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    You need skbee and use
    Code (Text):
    1. give player iron sword named "King's sword" with nbt "{Unbreakable:1,AttributeModifiers:[{AttributeName:""generic.attack_damage"",Amount:11,Slot:mainhand,Name:""generic.attack_damage"",UUID:[I;-121912,29295,214724,-58590]}],HideFlags:6}"
     

Share This Page

Loading...