**Updated to MC 1.21.x.**
Due to Mojang changing enchantments to be datapack-driven now, this mod now checks if the enchantments applied to the bow/crossbow have a `minecraft:ammo_use` effect that reduces its value to `0`, instead of directly asking if Infinity is applied. This should have the same effect by default, but now this mod should more easily work with other mods/datapacks (for example, if the stock Infinity enchantment is replaced with some other one, or a new enchantment is made that has infinity-like effects).
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }