Skip to content

The weapon switching trick was bugged fixed #12365

@Nippaku-Zanmu

Description

@Nippaku-Zanmu

Expected behavior

Successfully inflicts damage to the entity with the second weapon's enchantment and weapon characteristics, as well as the first weapon's base damage, and the attack cooldown is calculated based on the first weapon. e.g. Kill a zombie in a video (base damage from the sword plus enchantment damage from the mace)

Vanilla Features Available in vanilla and paper1.21#206 and earlier

https://github.com/user-attachments/assets/03fe9091-33eb-41c4-bd67-ca8fd000b420
https://github.com/user-attachments/assets/24b73255-29d0-465e-b22e-50a49353e0b1

Observed/Actual behavior

The damage dealt to entities is only the base damage and stat damage of the second weapon, and does not count the base damage of the first weapon, and the attack cooldown is calculated according to the second weapon, for example, zombies cannot be killed in the video

https://github.com/user-attachments/assets/1f5eaa4a-259e-4cb2-940f-dc80cbfa3dc6
https://github.com/user-attachments/assets/61271140-1019-4169-b1a0-b8d9b2eff7d4

Steps/models to reproduce

This is a popular trick in PVP/PVE for dealing a lot of damage

  1. Prepare 2 weapons The second one has enchantments, or has special attributes
  2. Use the first weapon to aim at the entity, and use the keyboard button to switch to the second weapon when the attack button is pressed
  3. The damage dealt to entities is the base damage of the first weapon, the enchantment damage of the second weapon, and the damage of special attributes
    (This technique needs to be practiced repeatedly, as the interval between pressing two keys must be very short.)

Plugin and Datapack List

[17:11:46 INFO]: ℹ Server Plugins (0):

Paper version

[17:11:16 INFO]: This server is running Paper version 1.21.4-222-main@9b1798d (2025-03-27T13:35:40Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.4-207-1a7288a (MC: 1.21.4)

Other

A video of this trick used
https://www.youtube.com/watch?v=C3mNPktHt-s
https://www.bilibili.com/video/BV113ADeEETL/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions