Pillager patrols are still spawning in trees in 1.14.4. This affects both standard pillagers and captains. It looks like they are spawning on solid blocks in the trees, and are ignoring the leaves when spawning, rather than spawning on the leaves themselves.
How to reproduce: Play the game. After a while, pillager patrols will spawn, and occasionally will spawn in trees. I live in a jungle and it's extremely obvious this happens, and very annoying when I'm getting shot from trees that I have to break to get to the pillager.
It's clear other people are still having this issue:
https://www.reddit.com/r/Minecraft/search?q=pillager+tree&restrict_sr=on
I updated MC-142360, and the mod told me to create a new ticket, so here it is.
This happens in single player, and on a server, both using Spigot software and Paper, as well as the vanilla server.
Linked issues
relates to 1
Attachments
Comments 3
If I read the code correctly, the patrol spawn sequence is this.
In the xz location it picks, it finds the highest movement blocking block in the column that isn't leaves (in this case that would be the log block), checks if it's a spawnable block, and checks the block light is 8 or below. It doesn't do a check to see if the foot/head blocks of the pillagers are obstructed, and just spawns them in if those other checks are satisfied. I believe this also means they can spawn in on carpet, which was what I was trying to figure out when looking into this
I guess this is done this way so that patrols can spawn in forests underneath trees. Adding one more check should make it work as intended.
I can confirm this. Also happens to me in 1.14.4