mojira.dev
MC-186770

A desync occurs when swapping a held sword with another item, or vice-versa while breaking a block

Switching from holding a weapon to holding nothing or vice-versa then quickly breaking a block desyncs the sound, particles of breaking, and dropping the items.

Steps to Reproduce:

Behavior #1:

  1. Hold something other than a sword in your main-hand, and a sword in your off-hand

  2. Press the 'Attack/Destroy' button and 'F' to swap hands at the same time
    ❌ → The block break particles will show, the break sound will play, but the block will not actually be broken and will quickly reappear.

Behavior #2:

  1. Hold a sword in your main-hand, and something other than a sword in your off-hand

  2. Press the 'Attack/Destroy' button and 'F' at the same time
    ❌ → The block break particles do not show, the break sound will not play, and the block will vanish.

Expected Results:

The behavior of the block breaking would respect whichever item was held in the player's hand when the initially broke the block.

Video/s:

[media]

Linked issues

Attachments

Comments 4

Can confirm in 1.18.1 and 22w07a.

Requesting ownership of this issue.

Can confirm in 1.21.4.

user-16d15

[Mod] Jingy

(Unassigned)

Confirmed

Inventory, Particles, Sound

block, break-block, desync, item, particle, sound

20w22a, 20w30a, 1.18.1, 22w07a, 1.20.4, 24w04a, 1.20.5, 1.21.4, 25w21a

Retrieved