Phantoms that spwan naturally due to players not sleeping can spawn inside solid blocks. Currently most mobs check for block colliisions in order to successfully spawn, and seems that this check is skipped for phantoms. Also sky access check is performed on the players spawning the phantoms, not the phantoms themselves.
Comments 2
place a 40x40x25(height) solid glass block centered on you, dont sleep for 3 ingame days,see phantoms spawning inside the blocks.
this works with all blocks /solid/nonsolid but glass you can see it.
heres a short vid explaining phantom mechanics i would highly recommend to watch it https://www.youtube.com/watch?v=OF4YEi-aiXY&t
How can one reproduce this bug?