mojira.dev
MC-78689

Invulnerable entities are hurt by non-melee damage from creative players

The bug

Entities with the Invulnerable tag will still take damage from TNT and splash potions of harming. This is because players in creative mode are able to damage invulnerable entities, and the game remembers that the TNT was ignited/potion was thrown by a creative player.

Linked issues

Attachments

Comments 18

Interestingly, this only occurs if it was an actual ignited TNT block. Creeper explosions and summoned PrimedTNT entities don't cause damage.

This is because players in Creative mode are able to damage Invulnerable entities; when you light TNT in Creative it counts as damage from a player in Creative mode.

@KingSupernova: Does this happen in Creative or Survival mode ?

Does this issue still affect the current version 1.8.6 in Survival Mode?

Sorry for the late response, sometimes yahoo sends the notification to spam.

You are correct, this only happens if the TNT was ignited by a player in creative mode. I think this is still a bug though. The logic behind letting invulnerable entities being able to be hit by players in creative mode was to make it easier to kill them or move them around. This isn't the case with TNT. It makes it very difficult to test things out, and doesn't really facilitate testing.

This bug also occurs with splash potions of harming, for the same reasons.

8 more comments

Can confirm in 21w06a.

Can confirm in 21w07a.

Can confirm in 21w11a.

Can confirm in 1.20.2

I can confirm this in 24w20a and attached a video demonstrating the bug.

[media]

KingSupernova

(Unassigned)

Confirmed

Platform

Low

Commands

Minecraft 1.8.3, Minecraft 1.8.6, Minecraft 1.10, Minecraft 1.12.2, Minecraft 18w03b, ..., 21w06a, 21w07a, 21w11a, 24w20a, 1.21

Retrieved