data remove entity @s Item.components."minecraft:attribute_modifiers"

#data modify entity @s Item.components."minecraft:attribute_modifiers" append value [{type:attack_damage,amount:8.5,operation:add_value,id:"-223321432456189101-73841",slot:mainhand}]
#data modify entity @s Item.components."minecraft:attribute_modifiers" append value [{type:attack_speed,amount:-2.7,operation:add_value,id:"d8e06eeb-2a32-4cc7-8e0d-dd149cfbcf94",slot:mainhand}]
#data modify entity @s Item.components."minecraft:attribute_modifiers" append value [{type:entity_interaction_range,amount:0.5,operation:add_value,id:"289067318962-0203218",slot:mainhand}]
data merge entity @s {CustomName:"Fixed Stats!",CustomNameVisible:1b,Item:{components:{"minecraft:item_name":"Netherite Longsword",max_damage:2437,attribute_modifiers:[{type:attack_damage,amount:8.2,operation:add_value,id:"-223321432456189101-73841",slot:mainhand},{type:attack_speed,amount:-2.7,operation:add_value,id:"d8e06eeb-2a32-4cc7-8e0d-dd149cfbcf94",slot:mainhand},{type:entity_interaction_range,amount:0.4,operation:add_value,id:"289067318962-0203218",slot:mainhand}]}}}
execute at @s run playsound minecraft:entity.player.levelup neutral @a ~ ~ ~ .2 2