How do I change item attributes?

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

flameyyf

Member
Aug 7, 2025
4
0
1
Im trying to make a Netherite Sword that has a slower attack speed but more damage how would I do that?
 
Do you need to give this item in a Skript? Because otherwise, you could do this with a item-edit plugin or even in game, although a bit tougher then.
 
If you have SkBee, try this method.


CSS:
command /customsword:
    trigger:
        set {_item} to netherite sword

        apply attribute modifier to {_item}:
            id: "minecraft:attack_damage"
            attribute: attack damage
            amount: 15.0
            operation: add_number
            slot: mainhand_slot_group

        apply attribute modifier to {_item}:
            id: "minecraft:attack_speed"
            attribute: attack speed
            amount: -3.5
            operation: add_number
            slot: mainhand_slot_group

        give player {_item}