I am creating a vanilla minecraft PvP map in which the players use "guns", renamed bows with various enchantments. For example, there is a bow named "pistol", and one named "rifle", and respective ammunition.
"Rifle" shoots "Rifle Ammo"
My current challenge is making a bow type shoot only the named ammo type. People will have more exclusive pistol ammo, but less rifle ammo, forcing them to conserve arrows.
How can you use commands to make a named bow shoot only a specific named ammo? I need for any given bow to only shoot one type, and not expend any other.