mojira.dev
MC-311167

Can't destroy blocks in Adventure mode after quickly switching to a tool with the `can_break` component

Description

Quickly switching the hotbar slot from an item without the can_break item component to an item with a matching can_breakitem component and breaking the block causes the block to not get destroyed. The block breaking animation is visible, the block breaking sound can be heard, but the block won’t get destroyed.

Steps To Reproduce

  1. Get yourself a tool with the can_breaktag:/give @s iron_pickaxe[can_break=[{blocks:"deepslate"}]] 1

  2. Change your gamemode to adventure mode.

  3. Select an empty hotbar slot.

  4. Quickly switch to the tool and start mining a deepslate block.

Environment

Kubuntu 26.04

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media]

MrKinau

(Unassigned)

Confirmed

Platform

Low

Player

26.2

Retrieved