#,tooltip_display:{hidden_components:[attribute_modifiers]} check first
execute as @s at @s run loot spawn ~ ~ ~ loot survivalplus:rng/cyclesword
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{neutralform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={formless:tag,cursed:tag},unbreakable={show_in_tooltip:0b},repair_cost=99,item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]']]
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{armorform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={formless:tag,cursed:tag},unbreakable={show_in_tooltip:0b},repair_cost=99,item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]'],attribute_modifiers=[{operation:add_value,type:attack_damage,amount:5,slot:mainhand,id:"minecraft:-124124125488832-25096"},{operation:add_value,type:attack_speed,amount:-2.6,slot:mainhand,id:"minecraft:-124124126488832-25296"},{operation:add_value,type:armor,amount:6,slot:mainhand,id:"minecraft:-124124127488832-25496"},{operation:add_value,type:armor_toughness,amount:4,slot:mainhand,id:"minecraft:-124124128488832-25696"}]]
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{slowform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={formless:tag,cursed:tag,icehammer:tag},unbreakable={show_in_tooltip:0b},item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]'],attribute_modifiers=[{operation:add_value,type:attack_damage,amount:7,slot:mainhand,id:"minecraft:-124124154488832-30896"},{operation:add_value,type:attack_speed,amount:-2.5,slot:mainhand,id:"minecraft:-124124155488832-31096"}]]
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{weakform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={formless:tag,cursed:tag,weaken:tag},unbreakable={show_in_tooltip:0b},item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]'],attribute_modifiers=[{operation:add_value,type:attack_damage,amount:7,slot:mainhand,id:"minecraft:-124124154488832-30896"},{operation:add_value,type:attack_speed,amount:-2.5,slot:mainhand,id:"minecraft:-124124155488832-31096"}]]
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{fastform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={formless:tag,cursed:tag},unbreakable={show_in_tooltip:0b},item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]'],attribute_modifiers=[{operation:add_value,type:attack_damage,amount:5,slot:mainhand,id:"minecraft:-124124170488832-34096"},{operation:add_value,type:attack_speed,amount:-2.5,slot:mainhand,id:"minecraft:-124124171488832-34296"},{operation:add_value,type:movement_speed,amount:0.2,slot:mainhand,operation:add_multiplied_base,id:"minecraft:-124124172488832-34496"}]]
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{damageform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={formless:tag,cursed:tag},unbreakable={show_in_tooltip:0b},item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]'],attribute_modifiers=[{operation:add_value,type:attack_damage,amount:10,slot:mainhand,id:"minecraft:-124124179488832-35896"},{operation:add_value,type:attack_speed,amount:-2.4,slot:mainhand,id:"minecraft:-124124180488832-36096"}]]
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{strengthform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={2hand:tag,strengthsword:tag,formless:tag,cursed:tag},unbreakable={show_in_tooltip:0b},item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]'],attribute_modifiers=[{operation:add_value,type:attack_damage,amount:7,slot:mainhand,id:"minecraft:-124124183488832-36696"},{operation:add_value,type:attack_speed,amount:-2.8,slot:mainhand,id:"minecraft:-124124184488832-36896"}]]
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{2handform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={2hand:tag,specialtool:tag,stuncrit:tag,formless:tag,cursed:tag},unbreakable={show_in_tooltip:0b},item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]'],attribute_modifiers=[{operation:add_value,type:attack_damage,amount:13,slot:mainhand,id:"minecraft:-124124198488832-39696"},{operation:add_value,type:attack_speed,amount:-2.9,slot:mainhand,id:"minecraft:-124124199488832-39896"},{operation:add_value,type:movement_speed,amount:-0.01,slot:mainhand,id:"minecraft:-124124200488832-40096"}]]
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{healform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={vampsword:tag,healwand:tag,formless:tag,cursed:tag},unbreakable={show_in_tooltip:0b},item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]'],attribute_modifiers=[{operation:add_value,type:attack_damage,amount:4,slot:mainhand,id:"minecraft:-124124207488832-41496"},{operation:add_value,type:attack_speed,amount:-2,slot:mainhand,id:"minecraft:-124124208488832-41696"}]]
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{minerform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={minerpick:tag,specialtool:tag,formless:tag,cursed:tag},unbreakable={show_in_tooltip:0b},item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]'],attribute_modifiers=[{operation:add_value,type:attack_damage,amount:7,slot:mainhand,id:"minecraft:-124124211488832-42296"},{operation:add_value,type:attack_speed,amount:-2.4,slot:mainhand,id:"minecraft:-124124212488832-42496"}]]
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{witherform:tag}}}}] as @s run item replace entity @s weapon.mainhand with netherite_sword[custom_data={withersword:tag,beheader:tag,formless:tag,cursed:tag},unbreakable={show_in_tooltip:0b},item_name='[{"text":"The"},{"text":" Sword","italic":false}]',lore=['[{"text":"Formless","italic":false,"color":"light_purple"}]','[{"text":"Unknowable","italic":false,"color":"red"}]','[{"text":"Cursed","italic":false,"color":"red"}]'],attribute_modifiers=[{operation:add_value,type:attack_damage,amount:7,slot:mainhand,id:"minecraft:-124124213488832-42696"},{operation:add_value,type:attack_speed,amount:-2.5,slot:mainhand,id:"minecraft:-124124214488832-42896"}]]
kill @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{del:tag}}}}]