tag @s[hasitem={item=weapon:regular_sword,location=slot.hotbar,slot=8}] add swap:regsword
tag @s[hasitem={item=weapon:abyssfiend_blade,location=slot.hotbar,slot=8}] add swap:abyssfiend_blade
tag @s[hasitem={item=weapon:undeadclaw,location=slot.hotbar,slot=8}] add swap:undeadclaw
tag @s[hasitem={item=weapon:tridentre,location=slot.hotbar,slot=8}] add swap:tridentre
tag @s[hasitem={item=weapon:bluntcleaver,location=slot.hotbar,slot=8}] add swap:bluntcleaver


replaceitem entity @s[hasitem={item=ultima:rumiaex,location=slot.armor.head,slot=0}] slot.hotbar 8 weapon:rumiaex 1 0 {"minecraft:keep_on_death":{},"minecraft:item_lock":{"mode":"lock_in_slot"}}
event entity @s[hasitem={item=ultima:rumiaex,location=slot.armor.head,slot=0}] weapon_name:rumiaex