In versions 1.19.2 and prior, endermen take damage from tnt explosions; however, in 1.19.3, endermen teleport away and do not take damage. Videos to these behavior in 1.19.2 and 1.19.3 linked below.
1.19.2 and prior: https://youtu.be/gpee4iBECVc
1.19.3: https://youtu.be/xV-yJyJoufw
Linked issues
is duplicated by 4
relates to 2
Attachments
Comments 8
Also confirmed bug with my design: World download in video description works in 1.19.2, but not 1.19.3 https://youtu.be/ISDJvKiuWLY
Code analysis:
Endermen are immune to damage of the type IndirectEntityDamageSource, with an exception made for splash water bottles. This didn't use to include explosions, but now any explosion with a living owner counts as an IndirectEntityDamageSource. This is defined in minecraft.world.damagesource.DamageSource.explosion and will include wither skull explosions (as long as they were fired by a Wither), TNT lit by a player or other mob, and creeper explosions.
if you make raysworks wither rose farm and properly spawn proof the whole area with water, the endermen have nowhere to teleport to, 32-40 block sphere radius of the endermen, if everything is water, they cant tp to it, they then just sit there and take the blast, but no damage is taken, its like they are immune.
When a mob takes damage, they flash red for a second, in this case, the endermen don't even flash red.
All other mobs take damage from the endermen blast and flash red while doing so... tested it last night, and definitely endermen do not take damage.