mojira.dev
MCPE-126082

Paintings sometimes glitch through blocks when breaking

When a painting placed on the north or east face of a wall is broken, its corresponding item entity is spawned within the wall. Because it is in a solid block, the entity then gets pushed out of the block according to the usual rules for entity collisions. This can cause it to be expelled in a direction other than the direction it was facing, which may be inaccessible to the player.

Steps to reproduce:

  1. Download the attached world "MCPE-126082 Paintings bug.mcworld".

  2. Make sure you're in Survival mode.

  3. Punch all 4 paintings on either side of the 2 walls, observing where the painting items end up.

Expected results:
All 4 painting items are spawned in the block the painting was in and fall to the floor.

Observed results:
For the paintings on the east- and south-facing walls, the items are spawned as expected and fall to the floor.
For the paintings on the west- and north-facing walls, the items are spawned in the walls they are attached to and, depending on the configuration of blocks in the neighborhood, are expelled to the side or upward until they find an air block or partial block to be in.

Impact:
When this bug occurs, the painting items often end up in positions where the player can't see them. Frequently, the player will believe the painting broke without dropping anything. Even if they suspect this bug has happened, it's difficult to predict where its item entity ended up because the logic that determines where it will go is complicated. And even then, the item could ultimately be pushed into flowing water, lava, a cavern, or an inaccessible void in solid rock and thereby be permanently lost or destroyed. So the impact is that the player can lose their property.

But the cost of this bug is exacerbated in many cases because players typically like to choose which art they're displaying by repeatedly placing and breaking the painting until they randomly get the art they want. When this bug occurs, every attempt will cost them another painting item.


Original description:

Painting when placed in certain areas will break behind the wall and spawn above the wall, sometimes causing them to disappear

Linked issues

MCPE-188030 Polished Diorite Paintings do not drop when you hit them Resolved MCPE-217212 Bugs in paintings Resolved MCPE-183791 Placing and destroying a painting where a candle would be would cause the painting to drop in an incorrect location Resolved MCPE-179239 Painting drops to wrong place when broken if block is above it Resolved MCPE-178572 Paintings dropping somewhere else Resolved

Attachments

Comments 8

Are you sure it's on 1.16.220 not 1.16.221 Hotfix? Please check it.

This is on the 1.16.221 hotfix. I apologize for the confusion

This happens in Bedrock 1.20.12 (PC) when placing a painting with blocks above it and then breaking the painting. The paintings phase through the ceiling/wall and, in my case, end up 5–10 blocks from their original location. The base is in a cave at about y=-10 if that makes any difference.

This is happening in 1.21

A possible explanation for what causes this bug: When a painting is placed, its tile entity is created with its X and Y Pos set to the entity's center. The painting's thickness is 1/16 of a block, so its X coordinate (for a west-facing wall) or Z coordinate (for a north-facing wall) is set to the corresponding coordinate of the block it's attached to minus 1/32 (- 0.03125). It might be that when this coordinate is used to determine where the item entity needs to be spawned, it gets rounded to the nearest integer instead of being rounded down. For a painting on a north-facing or west-facing wall, the resulting coordinate would be that of the block it's attached to instead of the block frame it's located in.

It's still happening in Bedrock 1.21.100 on mobile

And they also are randomly breaking… all my paintings broke when I joined my friend's realm, 2 of them despawned

The same is happening for me on the Windows version. Broken paintings often travel through blocks, typically up, but yes, it seems via collision rules.

calvin s

(Unassigned)

553470

Confirmed

Multiple

Windows 10

1.17.40.21 Beta, 1.16.221 Hotfix, 1.17.0, 1.17.2 Hotfix, 1.17.30, ..., 1.20.62 Hotfix, 1.21.1 Hotfix, 1.21.31 Hotfix, 1.21.43 Hotfix, 1.21.51 Hotfix

Retrieved