Trident on fire does not set mobs on fire
The bug
If you throw a trident through lava, the trident projectile will be set on fire, but mobs it hits won't be set on fire.
Code analysis
Code analysis by [Mod] ampolive can be found in this comment.
Created Issue:
Trident on fire does not set mobs on fire
Environment
If you throw a trident through lava, the trident projectile will be set on fire but mobs it hits won't be set on fire.
If you throw a trident through lava, the trident projectile will be set on fire but mobs it hits won't be set on fire.
If you throw a trident through lava, the trident projectile will be set on fire but mobs it hits won't be set on fire.
relates to
is duplicated by
relates to
The bug
If you throw a trident through lava, the trident projectile will be set on fire, but mobs it hits won't be set on fire.
Code analysis
Code analysis by [Mod] ampolive can be found in this comment .
Thank you for your report!
However, this issue has been closed as a Duplicate of MC-131337.
It has been linked to this report. If you have additional information, please add it to the duplicated report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
This is actually a duplicate of MC-131337.
Just so that you know, You're supposed to put your description of the bug under "Description", not Environment".
Can confirm for 1.13-pre4.
Affects 1.13-pre6.
Confirmed for 1.13.1.
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w06a.
Can confirm in 21w08b. Video attached.
Can confirm in 1.16.5.
Can confirm in 1.17.1.
Can confirm in 1.18.2 and 22w19a.
Can confirm in 1.19.
Can confirm in 1.19.2.
Code analysis (Mojang mappings, 23w45a): This is because ThrownTrident#onHitEntity does not check if it is on fire and set the hit entity on fire like in AbstractArrow#onHitEntity. This could be a potential fix:
... if ($$1.hurt($$5, $$2)) { if ($$1.getType() == EntityType.ENDERMAN) { return; } // Added if (this.isOnFire()) { $$1.setSecondsOnFire(5); } ... } else if ($$1.getType().is(EntityTypeTags.DEFLECTS_TRIDENTS)) { this.deflect(); return; } ...