-
Bug
-
Resolution: Duplicate
-
None
-
1.21
-
None
-
Unconfirmed
-
(Unassigned)
I am unsure when Mojang refactored a lot of the code regarding Crossbows/Bows, however whenever it happened, it appears a bug was introduced.
Before the change, whenever a crossbow with multishot was fired, the projectiles would first be shot, and then item damage would be dealt to the crossbow after (either 1 or 3 depending on the presence of multishot). Now, it instead iteratively shoots the projectile AND damages the crossbow in the same loop of ItemProjectileWeapon. This has the (likely unintended) side effect of introducing the following edge cases:
- If a crossbow with multishot has durability of 1, only 1 arrow is shot and crossbow breaks.
- If a crossbow with multishot has durability of 2, only 2 arrows are shot and crossbow breaks.
This behavior isn't the same as before the recode, whereas before it would shoot 3 projectiles in both cases.
- duplicates
-
MC-272806 Shooting a crossbow enchanted with Multishot that only has 1/2 use(s) left only shoots 1/2 arrow(s)
- Resolved