**Features:**
- Add support for Vanilla bow enchantments, as an opt-in config setting.
- Allow any amount of crossbow pulling models to be specified (was always 3).
- Backport fletcher villager trade for crossbow.
- Crossbow durability is increased from 326 -> 464 (21w37a).
- Crossbow item capability data is now stored as item nbt, instead of within the item capability itself.
- Old crossbows have their data converted upon loading the ItemStack.
- The new NBT format is the same as the 1.14 format, and backward compatibility exists to allow supplying projectile data as capability data.
- This change should improve ease-of-use, and also fix many mod compatibility problems involving mods that don't properly handle item capabilities.
- Crossbow tooltips now show a compact form of multiple repeated projectiles that are identical (25w06a).
- Crossbow tooltips now show all charged projectiles instead of just the first (25w04a).
- Dynamic crossbow ammo models.
- Allow `ICrossbowAmmo` to use its own ammo models (and colors) when rendering within loaded crossbows.
- New crossbow ammo textures for spectral arrows and tipped arrows.
- Firework rockets dispensed from a dispenser now travel in the direction they were fired (19w36a). A new config setting was added alongside this, and is disabled by default due to breaking old redstone.
- New creative tab for the crossbow item and crossbow enchantments. These are still also present in the weapons creative tab.
- Remap other crossbow item backport mods, including a couple that were released after this one (why?).
**Bug Fixes:**
- Allow `ICrossbowUser.shoot()` to be called without a target.
- Apply `ICrossbowAmmo.velocityMultiplier()` to projectiles fired by `ICrossbowUser` mobs.
- Credit players with damage caused by elytra firework rockets.
- Credit players with damage caused by placed firework rockets.
- Crossbows no longer take durability damage when used by `ICrossbowUser` mobs.
- Crossbows now grant `ICrossbowUser` mobs infinite ammo.
- Elytra fireworks without an explosion now no longer collide with anything.
- If a player stopped loading their crossbow at the right time, they would see it as loaded when it actually wasn't. This has been fixed.
- No longer inject default `ICrossbowAmmo` capability instances for `ItemArrow` items that implement `ICrossbowAmmo`.
- Off-handed crossbow hold pose (third person) is now reachable code (it used to always use the main-hand crossbow hold pose).
- Off-handed loaded crossbows (first person) no longer stop the main-hand from rendering (first person).
- Off-handed loaded crossbows (first person) now render.
- Only loaded crossbows in the main-hand are now positioned in the center in first person.
- Player arm swinging now always has priority over crossbow animations. This is technically inconsistent with 1.14, but it looks so much better imo.
- Prevent bow enchantments from being applied to crossbows via anvils while support for bow enchantments is disabled (fixes [#2](https://github.com/jbredwards/Crossbow-Mod/issues/2)).
- Remove cached owner entity instance for firework capability if the owner uuid is changed.
- Remove Vanilla's firework trail particle y-offset.
**API Changes:**
- Better documentation.
- Let `ICrossbowAmmo` handle damaging crossbows (via a new `damageCrossbow` method).
- Let `ICrossbowAmmo` use its own ammo models (and colors) when rendering within loaded crossbows.
- New `ICrossbowAmmo$Arrow` interface that has default projectile code for `ItemArrow` items.
- New `ICrossbowProjectile` interface that contains common code for projectile entities that can be shot by crossbows. This removes the need to reference the `ICrossbowArrowData` and `ICrossbowFireworkData` capabilities directly!
- New events that allow modifications of projectiles created by crossbows (`CreateCrossbowProjectileEvent.Pre` and `CreateCrossbowProjectileEvent.Post`).
- New methods for `ICrossbowUser` that provide much more customizable behavior.
- New utility methods for `ICrossbow`. These will hopefully remove the need for things (other than crossbow items) having to reference `ItemCrossbow`.
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" }