After setting the gamerules and entering the flat, I did a test, but it didn't work. But in other worlds it worked. I don't know what caused it.
After setting the gamerules and entering the flat, I did a test, but it didn't work. But in other worlds it worked. I don't know what caused it.
The glass is blocking the monsters' view of the player; see MC-64370.