Minecraft wiki entry for Raid_captain, associated text: In Java Edition, only pillagers and passive mobs may spawn within a pillager outpost spawn area. Pillagers may spawn on any valid opaque block as long as the sky light level is above 8, and the block light level is below 8, but can also spawn on grass or sand blocks regardless of block light level.