I /gave myself a a carrot on a stick with the attribute of generic attack damage of 7. it works as expected against mobs but it does the normal (for a carrot on a stick) damage against players
Command: give @a[tag=Click] minecraft:carrot_on_a_stick{Base:{Type:"SWORD",Rarity:"RARE",RarityColor:'
{"text":"","color":"blue"}
',Enchantments:[],AnvilUses:0,RepairCost:0,Reforge:"",Damage:100,BaseDamage:100,Strength:100,BaseStrength:100,Abilities:[
{Name:"Instant Transmission",Activation:"RIGHT CLICK",Type:"Item Ability"}
]},HideFlags:63,Unbreakable:1b,Description:['[
{"text":"Item Ability: ","color":"gold","italic":false}
,
{"text":"Instant Transmission","color":"gold","italic":false}
,
{"text":" RIGHT CLICK","color":"yellow","italic":false,"bold":true}
]','[
{"text":"Teleport ","color":"gray","italic":false}
,
{"text":"12 blocks ","color":"green","italic":false}
,
{"text":"ahead of","color":"gray","italic":false}
]','[
{"text":"you and gain +50 ","color":"gray","italic":false}
,
{"text":"Speed","color":"white","italic":false}
]','[
{"text":"for ","color":"gray","italic":false}
,
{"text":"3 seconds","color":"green","italic":false}
]','[
{"text":"Mana cost: ","color":"dark_gray","italic":false}
,
{"text":"50","color":"dark_aqua","italic":false}
]','[
{"text":""}
]'],display:{Name:'[
{"text":"Aspect of the End","color":"blue","italic":false}
]',Lore:['[
{"text":"Damage: ","color":"gray","italic":false}
,
{"text":"+100","color":"red","italic":false}
]','[
{"text":"Strength: ","color":"gray","italic":false}
,
{"text":"+100","color":"red","italic":false}
]','[
{"text":""}
]','[
{"text":"Item Ability: ","color":"gold","italic":false}
,
{"text":"Instant Transmission","color":"gold","italic":false}
,
{"text":" RIGHT CLICK","color":"yellow","italic":false,"bold":true}
]','[
{"text":"Teleport ","color":"gray","italic":false}
,
{"text":"8 blocks ","color":"green","italic":false}
,
{"text":"ahead of","color":"gray","italic":false}
]','[
{"text":"you and gain +50 ","color":"gray","italic":false}
,
{"text":"Speed","color":"white","italic":false}
]','[
{"text":"for ","color":"gray","italic":false}
,
{"text":"3 seconds","color":"green","italic":false}
]','[
{"text":""}
]','[
{"text":"This item can be reforged!","color":"dark_gray","italic":false}
]','[
{"text":"RARE SWORD","color":"blue","italic":false,"bold":true}
]']},CustomModelData:1,tp:1a+,attribute:minecraft.generic.attack.damage,amount:7}+