mojira.dev
MC-55233

Mining a block in Creative, then changing to Spectator creates breaking particles

How to reproduce

  1. Break a block (or try with a sword) in creative mode (survival mode is MC-46766),

  2. Switch to spectator mode,

  3. Click as if to break some block close by
    → You'll see 2-3 block-breaking particles

Note: Not sure if others in SMP can see these particles.

Code analysis

Code analysis by @unknown can be found in this comment.

Related issues

Attachments

Comments

migrated
[media][media]
marcono1234

Confirmed for 14w21b

Sonicwave

Confirmed in 1.8.

Sonicwave

Confirmed for 1.8.1-pre2.

migrated

Confirmed in 1.8.3. Occurs when switching from any mode, not just creative. Also occurs if you try to break a block with a sword in creative mode.

Bentroen

I can also confirm this issue. Happens for a moment, and then stops.

EDIT: Nice catch, @unknown! Maybe we should create a new ticket for that, or change the summary of this one so it includes that.

marcono1234

Please link to this comment in the description

The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

The reason for this is that the methods net.minecraft.client.Minecraft.sendClickBlockToController(boolean) and net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerDamageBlock(BlockPos, EnumFacing) do not test if the player is in spectator mode.

migrated

Confirmed for 1.13.1.

gaspoweredpick

Confirmed for 1.13.2 and 19w09a

Avoma

Can confirm in 20w48a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

migrated

Confirmed for 1.18-rc3

Arisa Bot

⚠️ Please do not add Affected Versions to resolved reports.

Have a look at the Resolution and the comments to see why this ticket has been resolved. If you think this ticket has been resolved erroneously you can contact the Mojira staff on Discord or Reddit.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

shufboyardee

Whoops, sorry.

shufboyardee

(Unassigned)

Confirmed

Player

block, breaking-particles, creative, game-mode-switch, spectator

Minecraft 14w20a, Minecraft 14w20b, Minecraft 14w21b, Minecraft 14w25b, Minecraft 14w26b, ..., 1.16.4, 20w48a, 21w03a, 21w05b, 21w06a

Retrieved