Minecraft – What are these red lasers

minecraft-feed-the-beastminecraft-java-edition

These just appeared. What's going on?!

enter image description here

enter image description here

They seem to follow me around, but appear patchily. What have I done?

Best Answer

They are marking locations where hostile mobs can spawn.

It is a feature of Not Enough Items (NEI) and the default key (configurable) to toggle this on and off is F7.