mojira.dev
MC-158674

Invulnerable paintings disappear

The bug

When you merge Invulnerable:1b data of paintings with a command, bigger ones disappear (not killed, just being invisible). And some smaller ones turn into items.

How to reproduce

  1. Place a few big and small paintings on a wall

  2. Set Invulnerable:1b:

    /execute as @e[type=painting] run data merge entity @s {Invulnerable:1}
  3. โŒ Some paintings pop off, others get invisible

Linked issues

Attachments

Comments 9

For me it is seemingly fixed when you reload the chunks. Whats different bug is that the painting will pop off the wall if there is a block above it (per say a ceiling) when you merge Invulnerable:1b.

Can confirm that this is an issue with specifics from MC-158933ย https://bugs.mojang.com/browse/MC-158933

The main issue seems to be with paintings larger than 2x2 in any space, when the invulnerability data is merged or modified the painting will break and pop off the wall

Confirmed for 1.15.1

The reason the paintings near ceilings pop off is that whenever there's a change in the painting's NBT, it teleports its bottom left corner to where its center is. This means paintings larger than 1x1 will teleport up and/or right with every data change, often into blocks. However, because ofย MC-81870, the client don't see it teleport.

Confirmed for 1.16 - however, I dont believe what Energyxxer said above is entirely true. I did some testing and it seems the TileX, TileY, and TileZ values (lower left corner of paintings) never actually gets changed or updated, only the Pos does. You can verify this using the data command or by leaving and rejoining the world, which will reset the painting back to its original location.

Gave ticket to @unknown due to request on discord

The issue persists on 1.16.2-pre1. Also, the paintings that become invisible, don't seem to have a hitbox.

Version 1.16.3, I couldn't reproduce ๐Ÿ˜ƒ. I noticed some weird behaviour though; when arrows hit the painting (or the half of the block the painting is on)ย  they just disappear, and (most of the times) the player takes damage as if they were hit by the arrow returning back to them (no matter the angle and only if the arrow was shot with the highest speed).

@unknown, please create a new ticket for that ;D

Nira Nira

MinePro120

(Unassigned)

Community Consensus

Commands

/data-merge, nbt, painting

1.14.4, 1.15.1, 1.15.2, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 2, 1.16.1, 1.16.2 Pre-release 1

Retrieved