mojira.dev
MC-142360

Pillagers patrols can spawn pillagers on top of trees inside a leaf block

When spawning pillagers, solid blocks such as wood logs covered by leaf are used as a spawn spot for spawning pillagers. On the screenshot, we can see while most of the pillagers inside a patrol spawn on the ground, one of them is stuck on the top of a tree and is inside a leaf block, just above a solid block (a wood log), which suggests the pillager just spawned there. This situation of pillagers growing in trees is frequently seen while playing.

Analysis: one of the conditions for pillagers to naturally spawn is on a solid block which has a sky access. Yet, leaf blocks do not block sky access. The spawning process seems to forget to check whether there is enough space for the pillager to spawn, especially on the lowest block.

Linked issues

Attachments

Comments 6

Can no longer reproduce in 1.14-pre2.

Just reproduced in 1.14-pre5. I added screenshots.

Hello, this bug is back for my server in 1.14.4. Running on vanilla server software, new pillagers are still spawning in trees. Please let me know if there's any way I can help reproduce this; I live in a jungle and patrols spawn in trees all the time. Very annoying. 

Please create a new ticket then.

I can reproduce this in 1.16.5, on my singleplayer world.

Johnibur

migrated

Confirmed

Mob spawning

Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03c, Minecraft 19w04b, Minecraft 1.14 Pre-Release 5, Minecraft 1.14

Minecraft 1.14.3 Pre-Release 2

Retrieved