-
Bug
-
Resolution: Fixed
-
Minecraft 14w06b, Minecraft 14w20b, Minecraft 14w21b, Minecraft 14w27b, Minecraft 14w28a, Minecraft 14w29b, Minecraft 14w31a, Minecraft 14w32d, Minecraft 1.8, Minecraft 1.8.4, Minecraft 15w50a, Minecraft 1.9, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w08b, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w16a, Minecraft 18w21a, Minecraft 18w22c, Minecraft 1.13-pre2, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w50a, Minecraft 19w09a, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 1, Minecraft 1.14.3 Pre-Release 2
-
None
-
Confirmed
-
Survival
-
Mob behaviour
-
Important
The bug
When the player attacks a blaze, nearby blazes behind solid walls will turn hostile and shoot at the player as if the wall wasn't there. Those blazes also continue to attack when the player has switched to Creative mode, whereas all blazes that initially had line-of-sight to the player will stop attacking.
Code analysis
The following analysis is based on a decompiled version of Minecraft using MCP 9.40pre-1 with MC 1.12.2 mappings (guide by Pokechu22 here)
As per net.minecraft.entity.monster.EntityBlaze.initEntityAI(), a blaze's entityCallsForHelp boolean in the net.minecraft.entity.ai.EntityAIHurtByTarget class is always set to true, which means that it will alert other blaze entities within its followRange as soon as it gets attacked. The method which is called when a blaze wants to alert their fellow blazes is net.minecraft.entity.ai.EntityAIHurtByTarget.alertOthers().
This method, however, does not check if there are any blocks in between the attacking entity and the alerted blaze. So, I quickly made a hacky for-loop to check if there are any blocks other than air in between the entities' coordinates. Albeit I absolutely do not recommend to use this code as it is wacky as hell and does not consider all blocks within the view of the alerted blaze, it does a decent job in showing what the issue is – so I'll post it here anyway if anyone wants to test this.
- is duplicated by
-
MC-55502 Blazes are able to see through blocks.
- Resolved
-
MC-55976 Blazes Tracking Players through Walls and Shooting Fireballs with Player not in Sight
- Resolved
-
MC-56509 Blazes "see through" walls in nether
- Resolved
-
MC-58566 Blaze trying to attack through walls
- Resolved
-
MC-62488 Blaze See Through Walls
- Resolved
-
MC-65317 Blazes and Withers and Mobs in general
- Resolved
-
MC-67929 Blazes Attack at Nothing
- Resolved
-
MC-98530 Blaze fireballs going through walls.
- Resolved
-
MC-108665 Blazes are able to see a player through blocks
- Resolved
-
MC-109238 Blaze see through solid blocks
- Resolved
-
MC-109957 Blazes can shoot through walls / player damage through walls?
- Resolved
-
MC-118695 Blaze aggro - undesired pack aggro effect
- Resolved
-
MC-134230 Remove bug with activating balazes anger through walls in nether fences.
- Resolved
-
MC-146058 Blaze - Firing even though they do not have line of sight
- Resolved
-
MC-147946 Blaze AI shooting and targeting through walls.
- Resolved
-
MC-151002 Blaze still track you in spectator mode and trough walls
- Resolved
-
MC-151880 Blazes trying to attack players even in creative, spectator
- Resolved
-
MC-152599 blazes can detect player and hit them with fire charge through blocks
- Resolved
-
MC-153135 Blazes are able see the Player through blocks when hit by the Player
- Resolved
-
MC-154100 All Blaze agro when one is hit even if none can see player (1.14 behavior change from previous)
- Resolved
- relates to
-
MC-160119 Blaze track players through blocks
- Open
-
MCPE-152047 Blazes track players through walls after being hit
- Reopened
-
MC-87946 Monsters see you through walls
- Resolved
-
MC-110510 Evokers can see through walls
- Resolved
-
MC-129191 Wild wolves see through blocks to become hostile toward mobs
- Resolved
-
MC-145202 Blazes can see through blocks they shouldn't be able to
- Resolved