execute @a[tag=goldCrossbow] ~ ~ ~ execute @s[hasitem={item=arrow}] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 hog_gold_loaded:crossbow
execute @a[tag=goldCrossbow] ~ ~ ~ execute @s[hasitem={item=arrow}] ~ ~ ~ clear @s arrow 0 1
tag @a remove goldCrossbow

execute @a[tag=ironCrossbow] ~ ~ ~ execute @s[hasitem={item=arrow}] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 hog_iron_loaded:crossbow
execute @a[tag=ironCrossbow] ~ ~ ~ execute @s[hasitem={item=arrow}] ~ ~ ~ clear @s arrow 0 1
tag @a remove ironCrossbow

execute @a[tag=diamondCrossbow] ~ ~ ~ execute @s[hasitem={item=arrow}] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 hog_diamond_loaded:crossbow
execute @a[tag=diamondCrossbow] ~ ~ ~ execute @s[hasitem={item=arrow}] ~ ~ ~ clear @s arrow 0 1
tag @a remove diamondCrossbow

execute @a[tag=netheriteCrossbow] ~ ~ ~ execute @s[hasitem={item=arrow}] ~ ~ ~ replaceitem entity @s slot.weapon.mainhand 0 hog_netherite_loaded:crossbow
execute @a[tag=netheriteCrossbow] ~ ~ ~ execute @s[hasitem={item=arrow}] ~ ~ ~ clear @s arrow 0 1
tag @a remove netheriteCrossbow


gamerule sendcommandfeedback false