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.
Best Answer
This should work:
This works for 3 different bows Power 3,4 and 5. It removes an ammo item for the correct bow. The only problem is that you have infinite ammo, but that can be fixed if you can figure a way to change arrow amount in inventory to the ammo item amount of the bow that the player has currently in hand.
Prepare scoreboard:
Check bow enchant, on always active repating command block
Removing 1 ammo item when a bow is shot, on repeating always active command block: