Zombified piglin and wither skeleton avoid walking through fire or over magma blocks
The bug
Zombified piglins and wither skeleton avoid walking through fire or over magma blocks if there is an alternative (not much longer) path, even though these blocks aren't hazardous to them.
Note: In previous versions these mobs would never walk over these blocks, even if there was no alternative.
Exceptions
It appears under certain circumstances they do walk over these blocks, so make sure to avoid them when trying to reproduce the bug.
- In general mobs apparently walk through fire and over magma blocks if this is the only available path.
- Wither skeletons walk over magma blocks if there is only one, however when two are placed next to each other, they won't walk over them.
- If the alternative path is much longer (or they are already in fire or on magma blocks?) they walk through fire / over magma blocks.
How to reproduce
See also:
- Wither skeleton avoiding magma blocks (1.16.2).mp4

- Zombified piglin avoiding magma blocks (1.16.2).mp4

- Build a "U"-shaped two block wide magma block pattern in the floor
- Switch to survival mode
- Give yourself fire resistance (optional)
- Summon one of the affected mobs
- Run over the magma blocks
→
The mob walk around the magma blocks to reach you
Code analysis
See this comment
Linked Issues
is duplicated by2
- Unresolved
Fritz Meyer
- 27
- 16
- Confirmed
Normal
- Gameplay
- Mob behaviour
- ai fire wither_skeleton
1.12 - 1.21.3
1.12 1.12.1 1.12.2-pre1 1.12.2-pre2 1.12.2 17w43a 17w43b 17w45a 17w46a 17w48a 17w50a 18w01a 18w03b 18w05a 18w06a 18w09a 18w10d 18w14b 18w21b 1.13-pre1 1.13-pre3 1.13-pre6 1.13-pre8 1.13-pre10 1.13 18w30b 18w31a 1.13.1 1.13.2 18w43c 18w44a 18w45a 19w08b 19w09a 19w11a 1.14 1.14.4 1.15-pre7 1.15.2 20w11a 20w19a 1.16.2 21w05b 1.19.2 23w06a 1.19.4-pre4 1.21.3
Created Issue:
Zombie Pigman won't walk through fire
Zombie Pigmen won't walk through fire, even though it isn't hazardous to them.
To reproduce just make the pigmen angry and put the player somewhere where the only way the pigmen could get them leads through fire. They won't walk through and won't get the player.
Zombie Pigman won't walk through fire or over magma blocks
Zombie Pigmen won't walk through fire or over magma blocks, even though it isn't hazardous to them.
To reproduce just make the pigmen angry and put the player somewhere where the only way the pigmen could get them leads through fire or over magma blocks. They won't walk through and won't get the player.
Zombie Pigmen won't walk through fire or over magma blocks, even though
it isn't hazardous to them.
To reproduce just make the pigmen angry and put the player somewhere where the only way the pigmen could get them leads through fire or over magma blocks. They won't walk through and won't get the player.Zombie Pigmen won't walk through fire or over magma blocks, even though they aren't hazardous to them.
To reproduce just make the pigmen angry and put the player somewhere where the only way the pigmen could get them leads through fire or over magma blocks. They won't walk through and won't get the player.
Zombie Pigmen won't walk through fire or over magma blocks, even though they aren't hazardous to them.
To reproduce just make the pigmen angry and put the player somewhere where the only way the pigmen could get them leads through fire or over magma blocks. They won't walk through and won't get the player.The bug
Zombie Pigmen won't walk through fire or over magma blocks, even though they aren't hazardous to them.
To reproduce just make the pigmen angry and put the player somewhere where the only way the pigmen could get them leads through fire or over magma blocks. They won't walk through and won't get the player.Code analysis
See this comment
relates to
relates to
The bug
Zombie Pigmen won't walk through fire or over magma blocks, even though they aren't hazardous to them.
To reproduce just make the pigmen angry and put the player somewhere where the only way the pigmen could get them leads through fire or over magma blocks. They won't walk through and won't get the player.However, it appears path finding changed in recent versions so any mob will walk through fire if it is the only path. Therefore when testing make sure there is another path available.
Code analysis
See this comment
The bug
Zombie Pigmen won't walk through fire or over magma blocks, even though they aren't hazardous to them.
To reproduce just make the pigmen angry and put the player somewhere where the only way the pigmen could get them leads through fire or over magma blocks. They won't walk through and won't get the player.
However, it appears path finding changed in recent versions so any mob will walk through fire if it is the only path. Therefore when testing make sure there is another path available.Code analysis
See this comment
The bug
Zombie Pigmen and Wither Skeleton won't walk through fire or over magma blocks, even though they aren't hazardous to them.
To reproduce just make the pigmen angry and put the player somewhere where the only way the pigmen could get them leads through fire or over magma blocks. They won't walk through and won't get the player.Exceptions
It appears under certain circumstances they do walk over these blocks, so make sure to avoid them when trying to reproduce the bug.
- In general mobs apparently walk through fire and over magma blocks if this is the only available path.
- Wither Skeletons walk over magma blocks if there is only one, however when two are placed next to each other, they won't walk over them.
Code analysis
See this comment
Zombie Pigman and Wither Skeleton won't walk through fire or over magma blocks
is duplicated by
relates to
The bug
Zombie Pigmen and Wither Skeleton won't walk through fire or over magma blocks, even though they aren't hazardous to them.
To reproduce just make the pigmen angry and put the player somewhere where the only way the pigmen could get them leads through fire or over magma blocks. They won't walk through and won't get the player.Exceptions
It appears under certain circumstances they do walk over these blocks, so make sure to avoid them when trying to reproduce the bug.
- In general mobs apparently walk through fire and over magma blocks if this is the only available path.
- Wither Skeletons walk over magma blocks if there is only one, however when two are placed next to each other, they won't walk over them.
Code analysis
See this comment
The bug
Zombified Piglins (Zombie Pigmen) and Wither Skeleton avoid walking through fire or over magma blocks if there is an alternative (not much longer) path, even though these blocks aren't hazardous to them.
Note: In previous versions these mobs would never walk over these blocks, even if there was no alternative.
Exceptions
It appears under certain circumstances they do walk over these blocks, so make sure to avoid them when trying to reproduce the bug.
- In general mobs apparently walk through fire and over magma blocks if this is the only available path.
- Wither Skeletons walk over magma blocks if there is only one, however when two are placed next to each other, they won't walk over them.
- If the alternative path is much longer (or they are already in fire or on magma blocks?) they walk through fire / over magma blocks.
Reproduction steps
See also:
- Wither skeleton avoiding magma blocks (1.16.2).mp4
- Zombified piglin avoiding magma blocks (1.16.2).mp4
- Build a "U"-shaped two block wide magma block pattern in the floor
- Switch to Survival mode
- Give yourself fire resistence (optional)
- Summon one of the affected mobs
- Run over the magma blocks
The mob walk around the magma blocks to reach you
Code analysis
See this comment
ZombiePigman and Wither Skeletonwon'twalk through fire or over magma blocksZombified Piglin and Wither Skeleton avoid walking through fire or over magma blocks
relates to
ZombifiedPiglin andWitherSkeleton avoid walking through fire or over magma blocksZombified piglin and wither skeleton avoid walking through fire or over magma blocks
The bug
Zombified
Piglins(Zombie Pigmen)andWitherSkeleton avoid walking through fire or over magma blocks if there is an alternative (not much longer) path, even though these blocks aren't hazardous to them.Note: In previous versions these mobs would never walk over these blocks, even if there was no alternative.
Exceptions
It appears under certain circumstances they do walk over these blocks, so make sure to avoid them when trying to reproduce the bug.
- In general mobs apparently walk through fire and over magma blocks if this is the only available path.
- Wither
Skeletons walk over magma blocks if there is only one, however when two are placed next to each other, they won't walk over them.- If the alternative path is much longer (or they are already in fire or on magma blocks?) they walk through fire / over magma blocks.
Reproduction stepsSee also:
- Wither skeleton avoiding magma blocks (1.16.2).mp4
- Zombified piglin avoiding magma blocks (1.16.2).mp4
- Build a "U"-shaped two block wide magma block pattern in the floor
- Switch to
Survival mode- Give yourself fire resist
ence (optional)- Summon one of the affected mobs
- Run over the magma blocks
The mob walk around the magma blocks to reach you
Code analysis
See this comment
The bug
Zombified piglins and wither skeleton avoid walking through fire or over magma blocks if there is an alternative (not much longer) path, even though these blocks aren't hazardous to them.
Note: In previous versions these mobs would never walk over these blocks, even if there was no alternative.
Exceptions
It appears under certain circumstances they do walk over these blocks, so make sure to avoid them when trying to reproduce the bug.
- In general mobs apparently walk through fire and over magma blocks if this is the only available path.
- Wither skeletons walk over magma blocks if there is only one, however when two are placed next to each other, they won't walk over them.
- If the alternative path is much longer (or they are already in fire or on magma blocks?) they walk through fire / over magma blocks.
How to reproduce
See also:
- Wither skeleton avoiding magma blocks (1.16.2).mp4
- Zombified piglin avoiding magma blocks (1.16.2).mp4
- Build a "U"-shaped two block wide magma block pattern in the floor
- Switch to survival mode
- Give yourself fire resistance (optional)
- Summon one of the affected mobs
- Run over the magma blocks
→The mob walk around the magma blocks to reach you
Code analysis
See this comment
is duplicated by
Resolved as duplicate of MC-120010 because that report already partially included this one.
Thank you for your report!
We're tracking this issue in MC-120010, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki


Just noticed that they are also avoiding magma blocks.
Can confirm. They indeed try to avoid fire, sometimes a Pigman decides to go through though.
@Bemoty
I think sometimes they get pushed in by other pigmen and once they are in they walk the rest of the way. But I've never seen one enter fire on it's own.
Take a look at the image from 16w14a and 16w15a, which shows the pathfinding debug renderer (not usable in normal gameplay, but documented here). You can see that the path has DANGER_FIRE and DAMAGE_FIRE indications on the fire, even though it's pigmen that are pathfinding. So, yes, the pathfinder definitely sees that there's fire and tries to avoid it, even though there's no real reason.
I checked the code, and it seems like blazes set the priority for both of those to 0 (normally it's 8 as you can just barely make out in the picture), meaning that their pathfinder is willing to enter them. The same thing could probably be done for pigmen and they would then happily run through fire.
[Mod] Pokechu22 I already checked the code for pathfinding and even got them to walk through fire by returning PathNodeType.WALKABLE for EVERY mob when they see fire in the method net.minecraft.pathfinding.WalkNodeProcessor.getPathNodeTypeRaw(). I didn't realize that mobs could have different danger/pathfindig-priorities. Not 100% familiar with Minecraft's code, yet.
Thanks! Also, that debug path plugin channel is super cool! Didn't know something like that existed.
Yep! This bug can be fixed by setting the path priority for both DAMAGE_FIRE and DANGER_FIRE and maybe LAVA to 0.0F. Setting the path priority can be done by using the method setPathPriority. After that, Zombie Pigmen will also run through fire to kill you if you are mean to them.
I changed the title and description to reflect that the same thing happens with magma blocks, which I hadn't yet found at time of creation. It seems to be the same bug that can be fixed in the same way, by setting the danger priority to 0, so it seems a good idea to have them listed in the same issue.
Relates to
MC-13497.Still affects 18w05a, please update!
Still affects 18w09a.
Does this still affect the current snapshot 1.13-pre3?
It does.
In 18w31a they will walk over magma blocks and also through fire to chase the player, tested in 18w31a. Fixed, maybe?
I've been testing like with 2018-08-03_09.02.29.png
, instead of an open area and that still occurs; they don't seem willing to go through if there isn't any other path. They might detect it as a valid optimization if other paths do exist, though; I haven't tested it much.
I'm testing a small Zombie Pigman farm in Crimson Forest. The floor is made from magma blocks to avoid piglin spawn. In the middle is a turtle egg. Zombie Pigman spawn, but stay still, don't want destroy the egg.
Cannot reproduce in 20w30a, zombified piglin walks through magma as another block
Can't reproduce in 1.16.2
I am also unable to reproduce this in 21w03a.
Fritz Meyer is this still an issue for you in 21w03a or later?
Also unable to reproduce in 21w05b.
I'm still able to reproduce this in 21w05b. Same behaviour as here Wither skeleton avoiding magma blocks (1.16.2).mp4
and here Zombified piglin avoiding magma blocks (1.16.2).mp4
I think they want to avoid lava too. A wither skeleton won't pathfind to me through lava and just flips its arms up and down at me.
Affects 1.19.4-pre4.
Affects 1.20.4
Confirmed in 1.21.3