mojira.dev
MC-1673

Several mobs can pop off paintings, item frames and leads and destroy minecarts, armor stands and anything in item form even when mobGriefing is turned off

Even after setting

/gamerule mobGriefing false

, item frames, paintings, leads, armor stands and anything in item form are still affectable by mobs (or their projectiles), e.g. creepers, withers, skeletons, strays, shulkers, ghasts and snowmen.
(What each mob can affect depends on the mob type, not all mobs can affect everything in the list.)

Overview:
Armor stands: Marker set to false, if they held any armour, this armour drops to the ground (only the armor stand gets destroyed). Armor stands with Marker set to true are not affected.
(If gamerule doTileDrops is set to false, an armor stand holding armour will not drop that armour, the armour will be destroyed together with the armor stand.)

Paintings and Item frames: When e.g. a creeper explodes closeby paintings and item frames, they drop to the ground, they are not destroyed (unless gamerule doEntityDrops is set to false).
(If an item frame held anything, it drops to the ground as well.)
If Invulnerable is set to true, they remain attached (including an inserted item, if they are item frames and hold anything).

Leads (on leashed mobs): They drop to the ground (even if gamerule doEntityDrops is set to false, see MC-75494).

Anything in item form: Gets destroyed (e.g. creeper explosion).

Related issues

MC-617 Wither Explosions Knock Off Paintings and Item Frames Even With Mob Griefing Off MC-2467 Creepers and item frames MC-3411 Gamerule - mobGriefing bugs MC-8746 gamerule mobGriefing + explode = destroy paint and frame MC-10658 Item frames get destroyed when mob briefing is set to off MC-11772 Item frame's break when a creeper explodes with gamerule mobGriefing false MC-12727 mobGriefing MC-18015 Leads break when mobGriefing is set to 0 MC-46200 Creepers blowing items out of item frames when mobGriefing false MC-46779 Withers grief blocks with mobGriefing off MC-49213 Creeper destroys item frames while mob griefing game rule is set to false MC-53958 Item frames get blown up with mobgriefing off MC-66498 Armor Stands Bug MC-70037 wither boss shoot the armor stand MC-98080 armour stands and item frames are broken when a creeper explodes when mob greifing is set to false MC-155862 Gamerule disablemobgriefing still destroys dropped items MC-177382 When mob griefing is false, creeper explosions still destroy item frames in their explosion radius. MC-186727 creepers blow up item frames and mobgriefing is set to false MC-199801 Minecarts get exploded by creepers when mobgriefing is off MC-206777 Gamerule mobGriefing does not prevent items from being destroyed by creepers MC-258415 Creepers can destroy furnace minecarts even if mob griefing is set to false

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media][media][media]
migrated

what happens is that because the item frame (full or not) is an ENTITY meaning it is alive it takes damage from explosions as a mob would even with mob griefing turned off it still dies-also occours with painting and if your bothered to test mobs

migrated

Out of all the ways you could've conveyed that information, you chose the most D-baggish way possible. Good for you,you know more about a game than I do. Don't bother responding.

migrated

Related to MC-617

migrated

Adam is right, though. Paintings and Frames are entities, not blocks, so they "die" from explosions.

migrated

Confirmed in 1.4.5.

migrated

another problem is that setting the health of the item frame to 9999999 or whatever means it wont break when you it it because it will hae loads of health and not "die"
and i know it was d-baggish but it conveyed the awnser

migrated

Why dont they make them "Blocks" (also - what is an entity - is it like the dropped items and players and mobs?)

migrated

Entity examples:

*Mobs
*Dropped items
*paintings, item frames
*shot arrows
*you (or at least other players in multiplayer)
*minecarts and boats
*Ender Crystals

Not sure why they're not blocks myself. Too complicated to code, perhaps?

migrated

Ok i will try to explain again an entitiy is somthing alive and why blocks float a way to test of somthing is an entitiy is to put it on a TNT cannon if it moves it is an entitiy if it drops its a block entities include (not included in previous list)
-thrown potions
-thrown enderpearls
-thrown snowballs
-thrown eggs
-falling blocks (falling sand/gravel/anvil/TNT (primed))
and some others i cant emember but as you can see all of these things move in an area that is not in the block grid. pretty much they can move wherever they want untill a certain event is triggered (hitting the top/side of a block) and again all of these are affected by TNT (sand/gravel/anvil only when falling because otherwise their a block) (TNT only when primed)so if it moves at all its an entitiy if not its a block.

migrated

but what if they just made the creeper give of a different explosion to TNT then mke it so that explosion wont damage paintings and frames and stuf like that

migrated

@Adam: Late reply, but wouldn't it make more sense to just have them be Tile Entities?

migrated

Still in 13w25b

migrated

This gets soooo annoying on my server.

migrated

Please update to latest full release + snapshot

migrated

Still an issue in 1.7.4
I haven't checked any 1.8 snapshots yet.

qmagnet

Confirmed for 14w32d, but this is caused because those items are entities. mobGriefing only applies to blocks.

Torabi

There's nothing that says mobGriefing couldn't be extended to cover certain entities. That's entirely up to the developers.

qmagnet

It's possible it could be changed, but I'm saying that's why it doesn't work.
Again, going back to MC-579, Creepers will destroy entities unless an Invulnerable NBT tag is attached to them.

migrated

Adjusted title to include armor stands.

migrated

Confirmed for 1.8.

migrated

Confirmed for 15w44b.

migrated

Confirmed in 15w49b.

migrated

Confirmed for 1.9-pre1

FaRo1

Confirmed for 1.10.

FaRo1

Confirmed for 1.10.1.

migrated

Maybe just have a greifable property for all entities and take its value into account when calculating damage i.e. allowing melee damage only.

migrated

I feel for me this work has intended, because those 3 thing are entities, If a creeper explode next to a lead... this would actually be logic to it to destroy (realistic)... Like for the painting, it will still destroy.

However Armor Stand shouldn't be damaged, because when peoples make nice & complex decoration with those it's would be annoying to see them being destroy.

migrated

@unknown the main issue is not that mobs destroy these things but that mobs still destroy them when mob griefing is turned off

migrated

Confirmed for 17w18b, tested by igniting Creepers.

Generally, the term "destroy" is not completely correct for everything:

ArmorStands: *Marker* false, if they held any armour, this armour drops to the ground (only the ArmorStand gets destroyed). ArmorStands with *Marker* true remain intact, which means they're still usable for mapmakers at least.
Paintings: When a Creeper explodes closeby paintings, they drop to the ground, they are not destroyed.
(unless gamerule "*doEntityDrops*" is set to false).
ItemFrames: Without *Invulnerable* set to true, they get destroyed, with *Invulnerable* true they remain intact, including the item they're holding, if they do.
Leads: When a Creeper explodes closeby, they don't get destroyed but drop to the ground,
even if the gamerule "*doEntityDrops*" is set to false
❓ Not sure if this should be considered "WaI" (lead drops despite set gamerule) ❓ , lead/knot considered sort of a special case?
In case it's not considered WaI, please let me know if a bugpost for it exists.

migrated

Just make a bug report, we'll see then.

migrated

Confirmed for 1.12 pre-1.

marcono1234

@@unknown and @unknown leads dropping despite the gamerule doEntityDrops being false is MC-75494.

migrated

Confirmed for 1.12 pre-3.

(Thank you @unknown for the link! πŸ™‚)

migrated

Confirmed for 1.12 pre-5.

SunCat

@unknown, the ticket it yours now

migrated

@unknown Okay, will take care of it πŸ™‚

migrated

Suggested edit:

Even after setting

/gamerule mobGriefing _false_

item frames, paintings, leads, armor stands, and anything...

Changes italicized

migrated

You're right, I may as well write the complete command! I think initially I just wanted to simply type "turn the gamerule mobGriefing off" without the slash/any code-formatting, might have been a text remnant of the previous bugpost owner I overtook or me just being tired yesterday when I updated all the bugposts in a rush πŸ˜‰

migrated

The lack of an "and" near the top still irks me

item frames, paintings, leads, armor stands,
and anything in item form...

ManDudeGuy

All of those are entities, not actual blocks. mobGriefing determines whether or not blocks can be changed/destroyed by mobs, not entities.

FaRo1

No, they shouldn't do any damage anymore, for example zombies don't pick up items anymore.

muzikbike

Affects 18w14a

muzikbike

Affects 18w20b

muzikbike

Affects 18w20c

muzikbike

Affects 18w22c

muzikbike

Affects 1.13-pre1

Panda4994

Confirmed for 1.13pre4.

Panda4994

Confirmed for 1.13-pre6.

Panda4994

Confirmed for 1.13-pre7.

migrated

Confirmed for 1.13-pre8.

migrated

Confirmed for 1.13-pre9.

migrated

Confirmed for 1.13-pre10.

migrated

Confirmed for 1.13.

migrated

Confirmed for 18w30a.

migrated

Confirmed for 18w30b.

migrated

Confirmed for 18w31a.

migrated

Confirmed for 18w32a.

migrated

Confirmed for 18w33a.

migrated

Confirmed for 1.13.1.

migrated

It's like every time you try to sleep in the nether the bed always explodes

migrated

@unknownΒ Yes, that's what beds do in that dimension πŸ™‚

It's very dangerous there, you shouldn't sleep anyway!

migrated

Confirmed in 1.16 Pre-release 2.

migrated

Confirmed in 1.16-pre3.

migrated

Confirmed in 1.16-pre4.

migrated

Confirmed in 1.16-pre5.

migrated

Confirmed in 1.16-pre6.

migrated

Confirmed in 1.16-pre7.

migrated

Confirmed in 1.16-pre8.

pulpetti

Confirmed in 20w27a

pulpetti

Confirmed in 1.16.1

pulpetti

Confirmed in 1.16

pulpetti

Confirmed in 20w29a

migrated

Can confirm in 1.16.3rc1

migrated

Can confirm in 1.16.4rc1

Avoma

Can confirm in 20w48a.

migrated

Confirmed in 1.4.2

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 21w15a.

Avoma

Can confirm in 21w17a.

migrated

Affects 1.17

Avoma

Can confirm in 1.17.1.

migrated

Still an issue as of 1.18.1

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 1.19.

migrated

mob giefing stops destruction of blocks or the picking up of items not the distruction of other entitys (including Dropped items)

migrated

These entities are stationary entities, and border very closely by being part of a build. You don't need to explain why this doesn't work (we know why), but it is something Mojang indicated they want fixed as this has been triaged.

Avoma

Can confirm in 1.19.1.

Avoma

Can confirm in 1.19.2.

Brain81505

Can confirm in 23w04a

Brain81505

Can confirm in 23w06a

[Mod] Jingy

Relates to MC-225270

migrated

etanaratsastaja

Confirmed

Platform

Normal

Commands, Entities

gamerule, mobGriefing

Minecraft 1.4.2, Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w09a, ..., 23w04a, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.20.3 Release Candidate 1

24w33a

Retrieved