Infinity is a Minecraft enchantment for bows that prevents arrows from being consumed when fired. One arrow is required to use a bow enchanted with Infinity. You can add the Infinity enchantment to any bow using an enchantment table, anvil or game command.
Using the Infinity Enchantment
A bow enchanted with Infinity can be used to shoot an unlimited number of arrows, provided the player’s inventory contains at least one arrow. Fired arrows can only be recovered in Creative mode (in which they are deleted instead of being added to the player’s inventory).
Infinity has no effect on enchanted and spectral arrows; they are still consumed as usual.
A crossbow consumes arrows even if commands are used to add Infinity to it.
Infinity Incompatibility
Mending and Infinity are mutually exclusive. However, if combined with commands, both enchantments work normally.