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
:
I have tried giving it a nbt, but it doesn't work. This is my code
Code:
command /kingsword:
trigger:
give player a Unbreakable iron sword named "<blue>King's sword"
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}"