replaceitem entity @s[tag=swap:regsword] slot.hotbar 8 weapon:regular_sword 1 0 {"minecraft:keep_on_death":{},"minecraft:item_lock":{"mode":"lock_in_inventory"}}
event entity @s[tag=swap:regsword] weapon_name:regular_sword

replaceitem entity @s[tag=swap:abyssfiend_blade] slot.hotbar 8 weapon:abyssfiend_blade 1 0 {"minecraft:keep_on_death":{},"minecraft:item_lock":{"mode":"lock_in_inventory"}}
event entity @s[tag=swap:abyssfiend_blade] weapon_name:abyssfiend_blade

replaceitem entity @s[tag=swap:undeadclaw] slot.hotbar 8 weapon:undeadclaw 1 0 {"minecraft:keep_on_death":{},"minecraft:item_lock":{"mode":"lock_in_inventory"}}
event entity @s[tag=swap:undeadclaw] weapon_name:undeadclaw

replaceitem entity @s[tag=swap:tridentre] slot.hotbar 8 weapon:tridentre 1 0 {"minecraft:keep_on_death":{},"minecraft:item_lock":{"mode":"lock_in_inventory"}}
event entity @s[tag=swap:tridentre] weapon_name:tridentre

replaceitem entity @s[tag=swap:bluntcleaver] slot.hotbar 8 weapon:bluntcleaver 1 0 {"minecraft:keep_on_death":{},"minecraft:item_lock":{"mode":"lock_in_inventory"}}
event entity @s[tag=swap:bluntcleaver] weapon_name:bluntcleaver

tag @s remove swap:regsword
tag @s remove swap:abyssfiend_blade
tag @s remove swap:undeadclaw
tag @s remove swap:tridentre
tag @s remove swap:bluntcleaver