"Invulnerable:1b" tag breaks paintings that are larger than 1x1 block (though I've seen a few cases that some 2x1 paintings did not break). They don't always pop and drop as entities. Most of the times, actually, they just dissapear.
Recreate the issue : place down paintings of various sizes and run :
/execute as @e[type=minecraft:painting] run data merge entity @s {Invulnerable:1b}
Linked issues
duplicates 1
Attachments
Comments 5
Also, to add, this command DID work in 1.13 to make paintings invulnerable, preventing careless players or ender pearls from breaking them. I cannot remember at what point this bug popped up, but it has been present ever since.
Can confirm for 20w21a.
It seems that the painting for the most part isn't killed, it's just made invisible. Though sometimes it is killed and drops as an item.
I did a test with all the possible painting types:
[media]Ran the command:
/execute as @e[type=painting] run data merge entity @s {Invulnerable:1b}
[media]It seems 1x1 paintings are the only ones that survive, though one of them was killed. I then did another test to see if 1x1 paintings would always survive:
[media]Ran the command:
/execute as @e[type=painting] run data merge entity @s {Invulnerable:1b}
[media]It seems that rarely 1x1 paintings are also turned invisible / killed.
Thank you for your report!
We're tracking this issue in MC-158674, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
Can confirm. I used to make my paintings invulnerable to prevent them being destroyed in adventure maps. At some point in either 1.14 or 1.15 running a command similar to one specified in the bug report resulted in the behaviour as described. Not all paintings would pop, but some would (including some 1x1) and in many cases they would simply disappear without dropping as an item.