execute as @s[nbt={Item:{id:"minecraft:netherite_sword"}}] run data merge entity @s {Item:{tag:{diamondnetherweaponkyu:1b,netherweaponkyu:1b,AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:8,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1185]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-2.4,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1186]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1187]},{},{},{},{},{}]}}}
execute as @s[nbt={Item:{id:"minecraft:netherite_axe"}}] run data merge entity @s {Item:{tag:{diamondnetherweaponkyu:1b,netherweaponkyu:1b,AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:10,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1188]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-3,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1189]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1190]},{},{},{},{},{}]}}}

execute as @s[nbt={Item:{id:"minecraft:diamond_sword"}}] run data merge entity @s {Item:{tag:{diamondnetherweaponkyu:1b,diamondweaponkyu:1b,AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:7,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1185]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-2.4,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1186]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1187]},{},{},{},{},{}]}}}
execute as @s[nbt={Item:{id:"minecraft:diamond_axe"}}] run data merge entity @s {Item:{tag:{diamondnetherweaponkyu:1b,diamondweaponkyu:1b,AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:9,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1188]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-3,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1189]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1190]},{},{},{},{},{}]}}}

execute as @s[nbt={Item:{id:"minecraft:iron_sword"}}] run data merge entity @s {Item:{tag:{AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:6,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1191]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-2.4,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1192]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1193]},{},{},{},{},{}]}}}
execute as @s[nbt={Item:{id:"minecraft:iron_axe"}}] run data merge entity @s {Item:{tag:{AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:9,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1194]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-3.1,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1195]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1196]},{},{},{},{},{}]}}}

execute as @s[nbt={Item:{id:"minecraft:golden_sword"}}] run data merge entity @s {Item:{tag:{AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:4,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1197]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-2.4,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1198]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1199]},{},{},{},{},{}]}}}
execute as @s[nbt={Item:{id:"minecraft:golden_axe"}}] run data merge entity @s {Item:{tag:{AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:7,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1200]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-3,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1201]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1202]},{},{},{},{},{}]}}}

execute as @s[nbt={Item:{id:"minecraft:stone_sword"}}] run data merge entity @s {Item:{tag:{AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:5,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1203]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-2.4,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1204]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1205]},{},{},{},{},{}]}}}
execute as @s[nbt={Item:{id:"minecraft:stone_axe"}}] run data merge entity @s {Item:{tag:{AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:9,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1206]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-3.2,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1207]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1208]},{},{},{},{},{}]}}}

execute as @s[nbt={Item:{id:"minecraft:wooden_sword"}}] run data merge entity @s {Item:{tag:{AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:4,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1209]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-2.4,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1210]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1211]},{},{},{},{},{}]}}}
execute as @s[nbt={Item:{id:"minecraft:wooden_axe"}}] run data merge entity @s {Item:{tag:{AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:7,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1212]},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-3.2,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1213]},{AttributeName:"generic.max_health",Name:"generic.max_health",Amount:0,Operation:0,Slot:"mainhand",UUID:[I;6969,6969,6969,1214]},{},{},{},{},{}]}}}

#execute as @s[nbt={Item:{id:"minecraft:diamond_leggings"}}] run data merge entity @s {Item:{tag:{AttributeModifiers:[{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,Slot:"legs",UUID:[I;6969,6969,6969,1215]},{AttributeName:"generic.armor",Name:"generic.armor",Amount:6,Operation:0,Slot:"legs",UUID:[I;6969,6969,6969,1216]},{},{},{},{},{},{}]}}}
#execute as @s[nbt={Item:{id:"minecraft:diamond_boots"}}] run data merge entity @s {Item:{tag:{AttributeModifiers:[{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,Slot:"feet",UUID:[I;6969,6969,6969,1217]},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,Slot:"feet",UUID:[I;6969,6969,6969,1218]},{},{},{},{},{},{}]}}}
#

#/data modify entity @e[type=item,limit=1,sort=nearest] Item.tag.AttributeModifiers append value {}