Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-274629

Multishot Enchant functionality changed

XMLWordPrintable

    • Icon: Bug 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.

            Unassigned Unassigned
            DiamondDagger590 Cynthia Yantis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: